php-fpm: preinstall wp-cli, add WP-independent healthcheck
This commit is contained in:
@@ -42,6 +42,16 @@ server {
|
||||
location = /favicon.ico { access_log off; log_not_found off; }
|
||||
location = /robots.txt { access_log off; log_not_found off; }
|
||||
|
||||
# Fleet readiness probe that bypasses WordPress and executes a bundled PHP script.
|
||||
location = /healthz {
|
||||
access_log off;
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME /usr/local/share/auvem/health/healthcheck.php;
|
||||
fastcgi_param SCRIPT_NAME /healthz;
|
||||
fastcgi_param PATH_INFO "";
|
||||
fastcgi_pass php-fpm:9000;
|
||||
}
|
||||
|
||||
# Main WordPress front-controller.
|
||||
# All non-file requests fall through to index.php.
|
||||
location / {
|
||||
|
||||
Reference in New Issue
Block a user