Is there any way to configure security key via environment variable? #203
|
We are using one docker image for running applications in different environments and we want to change the required security key for different environments (for example, for stage/production) Is there any way to configure |
Answered by
andrew-demb
Mar 1, 2023
Replies: 2 comments
|
No it is currently an INI entry only. You can however override your php-fpm container's entry point in order to add |
0 replies
|
We found a way to use environment variables in PHP docs and just checked in production - it works like a charm. https://www.php.net/manual/en/configuration.file.php spx.http_key="${PHP_SPX_SECRET}" |
0 replies
Answer selected by
andrew-demb
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We found a way to use environment variables in PHP docs and just checked in production - it works like a charm.
https://www.php.net/manual/en/configuration.file.php