Files
ax_hub_mcp_tool/nginx/blue.conf
jade c69f11e1c9
All checks were successful
Deploy to OCIWP / deploy (push) Successful in 13m41s
fix: add http2 support to Nginx to match Apache h2c proxying
2026-07-24 17:42:25 +09:00

82 lines
1.9 KiB
Plaintext

upstream gateway {
server gateway-blue:8081;
}
upstream tool-sms {
server tool-sms-blue:8082;
}
upstream tool-email {
server tool-email-blue:8083;
}
upstream tool-other {
server tool-other-blue:8084;
}
upstream tool-payment {
server tool-payment-blue:8085;
}
server {
listen 8281 http2;
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;
}
}
server {
listen 8282 http2;
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;
}
}
server {
listen 8283 http2;
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;
}
}
server {
listen 8284 http2;
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;
}
}
server {
listen 8285 http2;
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;
}
}