Collapse portal under src/, unify pnpm workspace/scripts, thin VIP topic re-exports, drop orphan vip scaffolds and one-shot scripts, ignore xhs/release, document root commands. Co-authored-by: Cursor <cursoragent@cursor.com>
43 lines
1.0 KiB
Plaintext
43 lines
1.0 KiB
Plaintext
# Nomadro DNS / 反向代理示例
|
||
# api.nomadro.cn -> FastAPI :8000
|
||
# admin.nomadro.cn -> Admin 静态资源(Vite build)并反代 /api
|
||
|
||
server {
|
||
listen 80;
|
||
server_name api.nomadro.cn;
|
||
|
||
client_max_body_size 10m;
|
||
|
||
location / {
|
||
proxy_pass http://127.0.0.1:8000;
|
||
proxy_set_header Host $host;
|
||
proxy_set_header X-Real-IP $remote_addr;
|
||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
proxy_set_header X-Forwarded-Proto $scheme;
|
||
}
|
||
}
|
||
|
||
server {
|
||
listen 80;
|
||
server_name admin.nomadro.cn;
|
||
|
||
root /var/www/nomadmini/admin/dist;
|
||
index index.html;
|
||
|
||
location /api/ {
|
||
proxy_pass http://127.0.0.1:8000/api/;
|
||
proxy_set_header Host $host;
|
||
proxy_set_header X-Real-IP $remote_addr;
|
||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
proxy_set_header X-Forwarded-Proto $scheme;
|
||
}
|
||
|
||
location /health {
|
||
proxy_pass http://127.0.0.1:8000/health;
|
||
}
|
||
|
||
location / {
|
||
try_files $uri $uri/ /index.html;
|
||
}
|
||
}
|