Update nginx.conf
This commit is contained in:
parent
c1247366a6
commit
20234e08ae
|
@ -16,6 +16,13 @@ http {
|
|||
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 / {
|
||||
# Use the placeholders for the proxy pass
|
||||
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 Accept-Encoding "";
|
||||
proxy_buffering off;
|
||||
proxy_ssl_verify off;
|
||||
proxy_ssl_verify off; # Skip SSL verification, be cautious
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue