Skip to content

Is there any way to configure security key via environment variable? #203

Answered by andrew-demb
andrew-demb asked this question in Q&A
Discussion options

You must be logged in to vote

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}"

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
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
Category
Q&A
Labels
None yet
2 participants