server { listen #NGINX_PORT#; server_name #URL#; root #INSTALL_PATH#; access_log /var/log/django/#APP_NAME#-access.log; error_log /var/log/django/#APP_NAME#-error.log; # if you change client_max_body_size do not forget to change it also # to your corresponding local_settings.py file client_max_body_size #MAX_UPLOAD_SIZE#M; location /static/ { # STATIC_URL alias #INSTALL_PATH#/#APP_NAME#/static/; # STATIC_ROOT expires 30d; } location /media/ { # MEDIA_URL alias #INSTALL_PATH#/#APP_NAME#/media/; # MEDIA_ROOT expires 30d; } location / { include uwsgi_params; uwsgi_pass 127.0.0.1:#UWSGI_PORT#; uwsgi_read_timeout 1800; uwsgi_send_timeout 600; } }