增加新的子官网配置以及ng

This commit is contained in:
dxin
2025-12-30 16:11:33 +08:00
parent 2146d3e585
commit b60f06476a
6 changed files with 279 additions and 32 deletions

View File

@@ -70,6 +70,30 @@ server {
}
}
# email-api 的代理配置
location /email-api/ {
proxy_pass http://10.0.0.5:8031;
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_buffering off;
proxy_cache off;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_request_buffering off;
add_header 'Access-Control-Allow-Origin' "$http_origin" always;
add_header 'Access-Control-Allow-Credentials' 'true' always;
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS, PUT, DELETE' always;
add_header 'Access-Control-Allow-Headers' 'Authorization,Content-Type,X-Requested-With,Accept,Origin' always;
if ($request_method = OPTIONS ) {
return 204;
}
}
location /api/chat/stream {
proxy_pass http://s4_jennie_im_backend;