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

@@ -10,12 +10,12 @@
mcp:
gateway:
fallback:
default-url: http://tool-other:8084
default-url: http://nginx:8284
routes:
sms: http://tool-sms:8082
email: http://tool-email:8083
payment: http://tool-payment:8085
hr: http://tool-other:8084
sms: http://nginx:8282
email: http://nginx:8283
payment: http://nginx:8285
hr: http://nginx:8284
# --- 신한라이프 EAI/MCI 연계 IP 정보 (개발 환경) ---
shinhan:

View File

@@ -26,12 +26,12 @@ server:
mcp:
gateway:
fallback:
default-url: http://tool-other:8084
default-url: http://nginx:8284
routes:
sms: http://tool-sms:8082
email: http://tool-email:8083
payment: http://tool-payment:8085
hr: http://tool-hr:8086
sms: http://nginx:8282
email: http://nginx:8283
payment: http://nginx:8285
hr: http://nginx:8286
agent-claims-required: false
trusted-claims-required: false
write-approval-required: false

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;
}