Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ################################################
- # SERVER
- ################################################
- server {
- listen 80;
- listen [::]:80;
- server_name www.ddp.abc.com;
- passenger_enabled on;
- # Tell Passenger where the app is.
- passenger_app_root location/snaps/current;
- # The entry point is server.js, not app.js. Tell Passenger
- # about this.
- passenger_app_type node;
- passenger_startup_file main.js;
- # The static assets are in `static_files` instead, so tell Nginx about it.
- root location/snaps/current/programs/web.browser/app;
- # There is no `tmp` dir. No problem, we can tell Passenger
- # to look for restart.txt in /webapps/foo instead.
- passenger_restart_dir location/snaps/current/tmp;
- }
- server {
- listen 80;
- listen [::]:80;
- server_name www.abc.com;
- passenger_enabled on;
- #Specific to server
- passenger_set_cgi_param DDP_DEFAULT_CONNECTION_URL http://www.ddp.abc.com;
- # Tell Passenger where the app is.
- passenger_app_root location/snaps/current;
- # The entry point is server.js, not app.js. Tell Passenger
- # about this.
- passenger_app_type node;
- passenger_startup_file main.js;
- # The static assets are in `static_files` instead, so tell Nginx about it.
- root location/snaps/current/programs/web.browser/app;
- # There is no `tmp` dir. No problem, we can tell Passenger
- # to look for restart.txt in /webapps/foo instead.
- passenger_restart_dir location/snaps/current/tmp;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement