Reuse Delamain proxy connections

This commit is contained in:
takuya committed 2026-11-29 13:57:57 +03:00
1 parent e96a34609d
commit 20cf14d953
1 file changed
+7 -1
+7 -1
View File
@@ -1,3 +1,8 @@
upstream delamain_guard {
server api-guard:8080;
keepalive 64;
}
server {
listen 80;
server_name localhost;
@@ -8,8 +13,9 @@ server {
index index.html;
location /api/ {
proxy_pass http://api-guard:8080/api/;
proxy_pass http://delamain_guard/api/;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;