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.
 
 
 
 
 
 

64 lines
1.3 KiB

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;
}
}
server {
gzip on;
gzip_disable "msie6";
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_types text/plain text/css application/json application/x-javascript text/xml applic$
listen 80;
client_max_body_size 4G;
server_name s.skillbox.ru;
#error_log /var/www/logs/codemy/flnginx-error.log;
keepalive_timeout 5;
root %(project_path)s;
location / {
proxy_pass http://localhost:5555;
}
}