1
0
Fork 0

Update nginx.conf

This commit is contained in:
colin 2023-11-21 17:25:03 +00:00
parent c1247366a6
commit 20234e08ae
1 changed files with 8 additions and 1 deletions

View File

@ -16,6 +16,13 @@ http {
text/html html htm shtml; text/html html htm shtml;
} }
# Health check location at a secret path
location /secret-health-path {
# This could be a simple return or proxy to an actual health check endpoint
add_header Content-Type text/plain;
return 200 'Healthy';
}
location / { location / {
# Use the placeholders for the proxy pass # Use the placeholders for the proxy pass
proxy_pass ${PROTOCOL}://${BACKEND_ADDRESS}:${BACKEND_PORT}; proxy_pass ${PROTOCOL}://${BACKEND_ADDRESS}:${BACKEND_PORT};
@ -27,7 +34,7 @@ http {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Accept-Encoding ""; proxy_set_header Accept-Encoding "";
proxy_buffering off; proxy_buffering off;
proxy_ssl_verify off; proxy_ssl_verify off; # Skip SSL verification, be cautious
} }
} }
} }