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>
19 lines
427 B
Caddyfile
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
|
|
}
|