diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 3d057b0245c8b83044ccf2e46fb82ea5ad690da4..26cfc2ace9b0efdb19fa5b0d0bed3235c1e15b37 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -60,7 +60,7 @@ http { charset utf-8; upstream backend { - server backend:8000; + server backend:8000; } server { @@ -74,21 +74,21 @@ http { #client_max_body_sze 1G; - root /var/www/html/; - location / { - try_files $uri /index.html; - } - - location /api { - proxy_pass_header Server; - proxy_set_header Host $host; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Scheme $scheme; - proxy_pass http://backend; + root /var/www/html/; + location / { + try_files $uri /index.html; } - - location /raw_status { + + location /api { + proxy_pass_header Server; + proxy_set_header Host $host; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Scheme $scheme; + proxy_pass http://backend; + } + + location /raw_status { stub_status; } }