nomadro/deploy/caddy/nomadro-portal.Caddyfile
eric 9928c5185b Mount nav/book/community as native App Router routes in one Next process.
Replace reverse-proxy/iframe approach with @ebook/@community/@navmini imports under /nav /book /community so localhost:3000 serves all three products directly.

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

19 lines
427 B
Caddyfile

# Single Next.js process serves portal + /nav + /book + /community
# Mini-programs remain under apps/*/weapp|tt|xhs|wemini|dymini|redmini
nomadro.cn, www.nomadro.cn {
encode gzip zstd
reverse_proxy 127.0.0.1:3000
}
# Optional dedicated hostnames → same app (path redirect)
ebook.nomadro.cn {
redir / /book{uri} 308
reverse_proxy 127.0.0.1:3000
}
nav.nomadro.cn {
redir / /nav{uri} 308
reverse_proxy 127.0.0.1:3000
}