nomadro/apps/ebook/deploy/caddy-book.caddy
eric d93a355fd5 Migrate navmini/ebook/nomadweb into apps/ as same-origin portal subpaths.
Shield external portal jumps (keep EXTERNAL_* for later), serve /nav from static build, and proxy /book + /community to vertical Next apps with Caddy notes.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-28 03:30:34 -05:00

50 lines
928 B
Plaintext

# ebook — Markdown reader + FastAPI backend
# https://book.nomadro.com
book.nomadro.com {
encode gzip
# FastAPI backend — all /api/* except Next.js static routes
handle /api/pay/* {
reverse_proxy 127.0.0.1:8010
}
handle /api/creem/* {
reverse_proxy 127.0.0.1:8010
}
handle /api/feedback {
reverse_proxy 127.0.0.1:8010
}
handle /api/userdata/* {
reverse_proxy 127.0.0.1:8010
}
handle /api/health {
reverse_proxy 127.0.0.1:8010
}
handle /api/admin/* {
reverse_proxy 127.0.0.1:8010
}
handle /api/docs {
reverse_proxy 127.0.0.1:8010
}
handle /api/openapi.json {
reverse_proxy 127.0.0.1:8010
}
# PocketBase admin UI (optional, restrict in production)
handle /pb/* {
uri strip_prefix /pb
reverse_proxy 127.0.0.1:8090
}
# Everything else → Next.js
handle {
reverse_proxy 127.0.0.1:3022
}
}
# 直连 IP 访问
http://107.173.30.245 {
encode gzip
reverse_proxy 127.0.0.1:3022
}