Skip to content

Instantly share code, notes, and snippets.

@libert-xyz
Created March 26, 2017 05:59
Show Gist options
  • Save libert-xyz/f585c25035126f6a92ae559e789e24b1 to your computer and use it in GitHub Desktop.
Save libert-xyz/f585c25035126f6a92ae559e789e24b1 to your computer and use it in GitHub Desktop.
app_nginx.conf
#path: /etc/nginx/conf.d/
server {
listen 80;
server_name localhost;
charset utf-8;
client_max_body_size 75M;
location ^~ /static/ {
include /etc/nginx/mime.types;
root /var/www/baseApp/crud/;
}
location / { try_files $uri @baseapp; }
location @baseapp {
include uwsgi_params;
uwsgi_pass unix:/var/www/baseApp/uwsgi.sock;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment