Skip to content

Commit 21d9ef0

Browse files
committed
build(healthcheck): add healthcheck in nginx
1 parent a280524 commit 21d9ef0

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

config/all/nginx/templates/00-hcommons.conf.template

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,12 @@ server {
9191
deny all;
9292
}
9393

94+
# Container healthcheck endpoint
95+
location = /healthz {
96+
access_log off;
97+
return 200 "ok";
98+
}
99+
94100
# Prevent BuddyPress docs from being accessed directly.
95101
location /app/uploads/bp-attachments/ {
96102
rewrite ^/app/uploads/bp-attachments/([0-9]+)/(.*) https://$http_x_forwarded_host/?p=$1&bp-attachment=$2 permanent;

0 commit comments

Comments
 (0)