Caddy ENV to FAST_CGI

On my production server and using ENV vars to store some configs that i hope gets to the fast_cgi process.
Other apps seem to be getting them but somehow is having trouble passing them across. Ive checked the source it seems it should be working but it doesnt.

Context:
Am running docker containers
Using caddy server with php7-fpm

As I understand it, php7-fpm requires you to explicitly define env vars in php-fpm.conf. It will ignore other env vars.

Thanks alot. I found a solutions php-fpm has clear_env config. setting it to false did the trick.

2 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.