2015-01-13 22:45:07 -05:00
|
|
|
server {
|
|
|
|
|
|
|
|
server_name {{ nginx_hostname }};
|
|
|
|
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 / {
|
|
|
|
try_files $uri @yourapplication;
|
|
|
|
}
|
|
|
|
location @yourapplication {
|
|
|
|
include uwsgi_params;
|
|
|
|
uwsgi_pass 127.0.0.1:{{ uwsgi_port }};
|
|
|
|
}
|
|
|
|
}
|