This commit is contained in:
2026-07-24 21:40:45 +08:00
parent 5cd779c22c
commit 10790b233e
3 changed files with 48 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
server {
listen 80;
server_name agent.senlin.ai;
root /data/senlin/web_v1;
index index.html;
location ^~ /api {
include cors.conf;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_redirect off;
add_header X-Backend-Header $upstream_http_custom_header;
proxy_pass http://localhost:9150;
}
}

View File

@@ -0,0 +1,6 @@
server {
listen 80;
server_name www.senlin.ai senlin.ai;
root /data/senlin/site;
index index.html;
}