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; } }