nginx conf environment variables code example
Example: nginx set environment variable
For php-cgi:
env[APP_ENV] = production
For php-fpm:
location / {
fastcgi_param APP_ENV production;
}
For php-cgi:
env[APP_ENV] = production
For php-fpm:
location / {
fastcgi_param APP_ENV production;
}