Skip to content

Commit ab2c135

Browse files
Added the env vars in the nginx config too
1 parent 45c2939 commit ab2c135

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

setup/web_server_configuration.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,12 @@ The **minimum configuration** to get your application running under Nginx is:
298298
fastcgi_pass unix:/var/run/php7.1-fpm.sock;
299299
fastcgi_split_path_info ^(.+\.php)(/.*)$;
300300
include fastcgi_params;
301+
302+
# optionally set the value of the environment variables used in the application
303+
# fastcgi_param APP_ENV prod;
304+
# fastcgi_param APP_SECRET <app-secret-id>;
305+
# fastcgi_param DATABASE_URL "mysql://db_user:db_pass@host:3306/db_name";
306+
301307
# When you are using symlinks to link the document root to the
302308
# current version of your application, you should pass the real
303309
# application path instead of the path to the symlink to PHP

0 commit comments

Comments
 (0)