Skip to content

Instantly share code, notes, and snippets.

@DrMartiner
Last active December 11, 2015 10:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DrMartiner/4585573 to your computer and use it in GitHub Desktop.
Save DrMartiner/4585573 to your computer and use it in GitHub Desktop.
Simple config site at develop mode
server {
listen 80;
server_name project.ru www.project.ru;
access_log /var/log/nginx/project-access.log;
error_log /var/log/nginx/project-error.log;
root /home/www/project/;
location /static/ {
autoindex on;
}
location /media/ {
autoindex on;
}
location /
{
uwsgi_pass unix:///var/run/uwsgi/app/project/socket;
include uwsgi_params;
uwsgi_buffers 8 128k;
client_max_body_size 10M;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment