2015-01-13 22:45:07 -05:00
|
|
|
server {
|
|
|
|
|
2015-02-25 13:13:38 -05:00
|
|
|
server_name {{ app_nginx_hostname }};
|
2015-01-13 22:45:07 -05:00
|
|
|
access_log {{ web_root_path }}/logs/nginx/{{ app_name }}-access.log;
|
|
|
|
error_log {{ web_root_path }}/logs/nginx/{{ app_name }}-error.log info;
|
|
|
|
|
|
|
|
location /static/ {
|
2015-01-21 09:05:19 -05:00
|
|
|
alias {{ app_nginx_static_path }};
|
2015-01-13 22:45:07 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
location / {
|
2016-05-12 08:46:45 -04:00
|
|
|
try_files $uri @{{app_name}}_app;
|
2015-01-13 22:45:07 -05:00
|
|
|
}
|
2016-05-12 08:46:45 -04:00
|
|
|
location @{{app_name}}_app {
|
|
|
|
# TODO: Find way to stitch together templates.
|
2015-01-13 22:45:07 -05:00
|
|
|
}
|
|
|
|
}
|