Update contract-check-http.conf.template
This commit is contained in:
parent
a1d361710a
commit
6dcc0311df
1 changed files with 4 additions and 1 deletions
|
|
@ -21,7 +21,10 @@ server {
|
||||||
# IPv6 too — otherwise IPv6 clients fall through to nginx's stock
|
# IPv6 too — otherwise IPv6 clients fall through to nginx's stock
|
||||||
# default.conf server (static /usr/share/nginx/html → 404s).
|
# default.conf server (static /usr/share/nginx/html → 404s).
|
||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
server_name ${NGINX_SERVER_NAME};
|
# `localhost` keeps the container healthcheck (Host: localhost) on this
|
||||||
|
# server instead of falling through to nginx's stock default.conf (404).
|
||||||
|
# conf.d loads contract-check.conf first, so this name wins the conflict.
|
||||||
|
server_name ${NGINX_SERVER_NAME} localhost;
|
||||||
|
|
||||||
location ~ ^/(healthz|readyz|metrics|api/|admin/|docs|openapi.json) {
|
location ~ ^/(healthz|readyz|metrics|api/|admin/|docs|openapi.json) {
|
||||||
proxy_pass http://api;
|
proxy_pass http://api;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue