renatomefi / php-fpm-healthcheck

A POSIX compliant sh script to healthcheck PHP fpm status, can be used only for pinging or check for specific metrics
MIT License
491 stars 55 forks source link

Ignore the environment when executing `cgi-fcgi` #20

Closed stevenjm closed 5 years ago

stevenjm commented 5 years ago

cgi-fcgi sends all environment variables as FastCGI parameters, which can result in enormous requests since the environment is outside of our control. Ignore all environment variables except the ones we need to use for cgi-fcgi.

Context

Related issue #18

Changes

stevenjm commented 5 years ago

I've tested and confirmed that this test fails without the associated code change.