fix: add Nginx SSE proxy configs to prevent buffering of AI streams, and fix Gateway internal routing to use Nginx
Some checks failed
Deploy to OCIWP / deploy (push) Has been cancelled

This commit is contained in:
jade
2026-07-24 10:45:27 +09:00
parent 227edf9744
commit aae95591a0
4 changed files with 60 additions and 10 deletions

View File

@@ -22,6 +22,11 @@ server {
listen 8281;
location / {
proxy_pass http://gateway;
proxy_http_version 1.1;
proxy_set_header Connection '';
proxy_buffering off;
proxy_cache off;
proxy_read_timeout 86400;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
@@ -31,6 +36,11 @@ server {
listen 8282;
location / {
proxy_pass http://tool-sms;
proxy_http_version 1.1;
proxy_set_header Connection '';
proxy_buffering off;
proxy_cache off;
proxy_read_timeout 86400;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
@@ -40,6 +50,11 @@ server {
listen 8283;
location / {
proxy_pass http://tool-email;
proxy_http_version 1.1;
proxy_set_header Connection '';
proxy_buffering off;
proxy_cache off;
proxy_read_timeout 86400;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
@@ -49,6 +64,11 @@ server {
listen 8284;
location / {
proxy_pass http://tool-other;
proxy_http_version 1.1;
proxy_set_header Connection '';
proxy_buffering off;
proxy_cache off;
proxy_read_timeout 86400;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
@@ -58,6 +78,11 @@ server {
listen 8285;
location / {
proxy_pass http://tool-payment;
proxy_http_version 1.1;
proxy_set_header Connection '';
proxy_buffering off;
proxy_cache off;
proxy_read_timeout 86400;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}

View File

@@ -22,6 +22,11 @@ server {
listen 8281;
location / {
proxy_pass http://gateway;
proxy_http_version 1.1;
proxy_set_header Connection '';
proxy_buffering off;
proxy_cache off;
proxy_read_timeout 86400;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
@@ -31,6 +36,11 @@ server {
listen 8282;
location / {
proxy_pass http://tool-sms;
proxy_http_version 1.1;
proxy_set_header Connection '';
proxy_buffering off;
proxy_cache off;
proxy_read_timeout 86400;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
@@ -40,6 +50,11 @@ server {
listen 8283;
location / {
proxy_pass http://tool-email;
proxy_http_version 1.1;
proxy_set_header Connection '';
proxy_buffering off;
proxy_cache off;
proxy_read_timeout 86400;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
@@ -49,6 +64,11 @@ server {
listen 8284;
location / {
proxy_pass http://tool-other;
proxy_http_version 1.1;
proxy_set_header Connection '';
proxy_buffering off;
proxy_cache off;
proxy_read_timeout 86400;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
@@ -58,6 +78,11 @@ server {
listen 8285;
location / {
proxy_pass http://tool-payment;
proxy_http_version 1.1;
proxy_set_header Connection '';
proxy_buffering off;
proxy_cache off;
proxy_read_timeout 86400;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}