We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36d3e02 commit 46a481dCopy full SHA for 46a481d
1 file changed
nginx.conf
@@ -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
31
+ proxy_pass http://web_api/health;
32
+ health_check;
33
34
35
0 commit comments