2015-01-13 22:45:07 -05:00
|
|
|
server {
|
|
|
|
|
2016-05-14 10:56:30 -04:00
|
|
|
server_name {{ nsbase_app_nginx_hostname }};
|
|
|
|
access_log {{ nsbase_web_root_path }}/logs/nginx/{{ nsbase_app_name }}-access.log;
|
|
|
|
error_log {{ nsbase_web_root_path }}/logs/nginx/{{ nsbase_app_name }}-error.log info;
|
2015-01-13 22:45:07 -05:00
|
|
|
|
|
|
|
location /static/ {
|
2016-05-14 10:56:30 -04:00
|
|
|
alias {{ nsbase_app_nginx_static_path }};
|
2015-01-13 22:45:07 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
location / {
|
2016-05-14 10:56:30 -04:00
|
|
|
try_files $uri @{{ nsbase_app_name }}_app;
|
2015-01-13 22:45:07 -05:00
|
|
|
}
|
2016-05-14 10:56:30 -04:00
|
|
|
location @{{ nsbase_app_name }}_app {
|
|
|
|
# Include your setup to connect to the webapp setup here.
|
2015-01-13 22:45:07 -05:00
|
|
|
}
|
|
|
|
}
|