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>
55 lines
1.4 KiB
Plaintext
55 lines
1.4 KiB
Plaintext
# Nginx for api.nomadro.cn -> Nomadmini FastAPI :8010
|
|
|
|
server
|
|
{
|
|
listen 80;
|
|
server_name api.nomadro.cn;
|
|
root /www/wwwroot/api.nomadro.cn;
|
|
|
|
location ~ ^/\.well-known/ {
|
|
allow all;
|
|
}
|
|
|
|
location / {
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
|
|
access_log /www/wwwlogs/api.nomadro.cn.log;
|
|
error_log /www/wwwlogs/api.nomadro.cn.error.log;
|
|
}
|
|
|
|
server
|
|
{
|
|
listen 443 ssl http2;
|
|
server_name api.nomadro.cn;
|
|
client_max_body_size 32m;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/api.nomadro.cn/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/api.nomadro.cn/privkey.pem;
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
|
ssl_ciphers HIGH:!aNULL:!MD5;
|
|
ssl_prefer_server_ciphers on;
|
|
|
|
location ~ ^/\.well-known/ {
|
|
root /www/wwwroot/api.nomadro.cn;
|
|
allow all;
|
|
}
|
|
|
|
location / {
|
|
proxy_pass http://127.0.0.1:8010;
|
|
proxy_http_version 1.1;
|
|
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;
|
|
proxy_cache off;
|
|
proxy_no_cache 1;
|
|
proxy_cache_bypass 1;
|
|
proxy_read_timeout 300s;
|
|
proxy_send_timeout 300s;
|
|
}
|
|
|
|
access_log /www/wwwlogs/api.nomadro.cn.log;
|
|
error_log /www/wwwlogs/api.nomadro.cn.error.log;
|
|
}
|