diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 8f1f271..5dbd781 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -17,33 +17,33 @@ http { # public HTTP entrypoint (host will terminate TLS and proxy here) server { - listen 8080; + listen 8080; - # exact-match: wins over everything else in this server - location = /healthz { - access_log off; - add_header Content-Type text/plain; - return 200 "ok\n"; - } + # exact-match: wins over everything else in this server + location = /healthz { + access_log off; + add_header Content-Type text/plain; + return 200 "ok\n"; + } - # frontend default - location / { - proxy_http_version 1.1; - proxy_set_header Host $host; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header Connection ""; - proxy_pass http://127.0.0.1:${PROD_FRONTEND_PORT}; - } + # frontend default + location / { + proxy_http_version 1.1; + proxy_set_header Host $host; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header Connection ""; + proxy_pass http://127.0.0.1:${PROD_FRONTEND_PORT}; + } - # backend API - location /api/ { - proxy_http_version 1.1; - proxy_set_header Host $host; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header Connection ""; - proxy_pass http://127.0.0.1:${PROD_BACKEND_PORT}/; - } + # backend API + # location /api/ { + # proxy_http_version 1.1; + # proxy_set_header Host $host; + # proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + # proxy_set_header X-Forwarded-Proto $scheme; + # proxy_set_header Connection ""; + # proxy_pass http://127.0.0.1:${PROD_BACKEND_PORT}/; + # } } }