Skip to content

Commit 7b71088

Browse files
Merge branch 'hotfix/FixNginxConfFile'
2 parents 46a481d + 0c2879d commit 7b71088

2 files changed

Lines changed: 10 additions & 11 deletions

File tree

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ services:
1818
deploy:
1919
replicas: 3
2020
healthcheck:
21-
test: ["CMD", "curl", "-f", "http://webapi/health"]
21+
test: ["CMD", "curl", "-f", "http://127.0.0.1:8080/health"]
2222
interval: 30s
2323
timeout: 10s
2424
retries: 3

nginx.conf

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,18 @@ http {
1717
client_max_body_size 50M;
1818

1919
location / {
20-
proxy_pass http://web_api/;
21-
proxy_http_version 1.1;
22-
proxy_set_header Upgrade $http_upgrade;
23-
proxy_set_header Connection $connection_upgrade;
24-
proxy_set_header Host $host;
25-
proxy_cache_bypass $http_upgrade;
26-
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
27-
proxy_set_header X-Forwarded-Proto $scheme;
20+
proxy_pass http://web_api;
21+
proxy_http_version 1.1;
22+
proxy_set_header Upgrade $http_upgrade;
23+
proxy_set_header Connection keep-alive;
24+
proxy_set_header Host $host;
25+
proxy_set_header X-Real-IP $remote_addr;
26+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
27+
proxy_set_header X-Forwarded-Proto $scheme;
2828
}
2929

30-
location / {
30+
location /health {
3131
proxy_pass http://web_api/health;
32-
health_check;
3332
}
3433
}
3534
}

0 commit comments

Comments
 (0)