Pass custom-environment variables to webservers (nginx/apache)
Hey folks,
right now I'm not able to setup env-settings via the webserver (nginx/apache) to pass to the applications behind. (maybe there is a good workaround for it?) As I didn't found any cool way to fix that I would suggest to store key,value-pairs which can be then reused dynamically per web-server
I can also contribute if required
As a user I want to inject environment variables via the webserver in order to use them inside the web-applications.
Acceptance Criteria
- provide the ability to add multiple environment variables as a key-value mix
- override of system-relevant-environment variables should be not allowed
- apply for all available webservers (nginx, apache)
- for nginx it needs to be implemented inside the @php-location
Hints
- nginx:
fastcgi_param <env_name> '<env_value>';
- apache:
SetEnv <env_name> <env_value>
Edited by Thom