php-fpm: preinstall wp-cli, add WP-independent healthcheck
All checks were successful
nginx-build / build (push) Successful in 1m2s
php-fpm-build / build (7.4) (push) Successful in 5m23s

This commit is contained in:
Elijah Duffy
2025-12-09 13:30:27 -08:00
parent 238d3244b2
commit 0d00fd2ac4
4 changed files with 131 additions and 5 deletions

View File

@@ -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 / {