diff options
author | Andrew Dolgov <[email protected]> | 2023-10-25 17:53:49 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2023-10-25 17:53:49 +0300 |
commit | 31812726190407ae52f673b9c3184f5348c2fcc1 (patch) | |
tree | 1ef468769e7589a5d55eb402468d57229f3aa96a /.docker/web-nginx | |
parent | 865ecc87963dc3b26e66296616eef2a1cc41ac3f (diff) |
add healthcheck public method, map by default to /healthz
Diffstat (limited to '.docker/web-nginx')
-rw-r--r-- | .docker/web-nginx/nginx.conf | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/.docker/web-nginx/nginx.conf b/.docker/web-nginx/nginx.conf index c85e46ef3..9e2298897 100644 --- a/.docker/web-nginx/nginx.conf +++ b/.docker/web-nginx/nginx.conf @@ -34,6 +34,8 @@ http { internal; } + rewrite ${APP_BASE}/healthz ${APP_BASE}/public.php?op=healthcheck; + location ~ \.php$ { # regex to split $uri to $fastcgi_script_name and $fastcgi_path fastcgi_split_path_info ^(.+?\.php)(/.*)$; |