You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

41 lines
840 B

upstream %(project_name)s {
server unix:%(application_path)s/app.sock;
}
server {
listen 80;
server_name %(server_name)s;
client_max_body_size 10M;
keepalive_timeout 15;
location /static/media {
autoindex on;
alias %(application_path)s/media;
}
location /static {
autoindex on;
alias %(application_path)s/static;
log_not_found on;
}
location / {
include uwsgi_params;
uwsgi_pass %(project_name)s;
}
location /robots.txt {
root %(application_path)s/static;
access_log off;
log_not_found off;
}
location /favicon.ico {
root %(application_path)s/static/img;
access_log off;
log_not_found off;
}
}