Created
August 6, 2014 13:42
-
-
Save jbradach/0981b7171e13ad79c115 to your computer and use it in GitHub Desktop.
Nginx IPv6 server block and upstream for uWSGI apps.
This file contains hidden or 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
upstream uwsgi_host { | |
server unix:/tmp/flaskapp.sock; | |
} | |
server { | |
listen 80 default_server; | |
listen [::]:80 default_server ipv6only=on; | |
location ^~ /static/ { | |
alias /srv/www/flaskapp/app/static; | |
} | |
location / { try_files $uri @flaskapp; } | |
location @flaskapp { | |
include uwsgi_params; | |
uwsgi_pass uwsgi_host; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment