ansible-nginx-uwsgi-supervisor/templates/nginx/app_uwsgi_nginx.conf

18 lines
460 B
Plaintext

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/ {
alias {{ nginx_app_static }};
}
location / {
try_files $uri @yourapplication;
}
location @yourapplication {
include uwsgi_params;
uwsgi_pass 127.0.0.1:{{ uwsgi_port }};
}
}