Created
September 25, 2012 11:51
-
-
Save radiosilence/3781314 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name %(name)s %(aliases)s; | |
client_max_body_size 4G; | |
keepalive_timeout 5; | |
gzip on; | |
gzip_static on; | |
gzip_min_length 1000; | |
gzip_types text/css text/plain text/javascript application/x-javascript application/x-json; | |
location / { | |
try_files $uri @%(name)s; | |
} | |
location /media { | |
alias %(path)s/%(name)s/%(appname)s/media/; | |
expires max; | |
} | |
location /static { | |
alias %(path)s/%(name)s/%(appname)s/static/; | |
expires max; | |
} | |
location @%(name)s { | |
include uwsgi_params; | |
uwsgi_pass unix:/srv/%(name)s/wsgi.sock; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment