Skip to content

Commit 46a481d

Browse files
add nginx conf file for the app
1 parent 36d3e02 commit 46a481d

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

nginx.conf

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
worker_processes auto;
2+
3+
events {
4+
worker_connections 1024;
5+
}
6+
7+
http {
8+
9+
upstream web_api {
10+
server webapi:8080;
11+
}
12+
13+
server {
14+
listen 80;
15+
server_name localhost;
16+
17+
client_max_body_size 50M;
18+
19+
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;
28+
}
29+
30+
location / {
31+
proxy_pass http://web_api/health;
32+
health_check;
33+
}
34+
}
35+
}

0 commit comments

Comments
 (0)