mirror of
https://github.com/bunkerity/bunkerized-nginx
synced 2023-12-13 21:30:18 +01:00
26 lines
408 B
Plaintext
26 lines
408 B
Plaintext
server {
|
|
|
|
# healthcheck service for docker, swarm and k8s
|
|
server_name healthcheck.bunkerweb.io;
|
|
|
|
# only listen on localhost
|
|
listen 127.0.0.1:6000;
|
|
|
|
# healthcheck endpoint
|
|
location ~ ^/healthz$ {
|
|
keepalive_timeout 0;
|
|
default_type "text/plain";
|
|
content_by_lua_block {
|
|
ngx.say("ok")
|
|
}
|
|
}
|
|
|
|
# disable logging
|
|
access_log off;
|
|
|
|
# don't respond to other requests
|
|
location / {
|
|
return 444;
|
|
}
|
|
}
|