Created
August 10, 2017 12:34
-
-
Save bitwisecook/747e6e7f6381546c9f86908d0b398da7 to your computer and use it in GitHub Desktop.
nginx.conf Jinja template for ngnix+uWSGI+flask app
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 {{ ansible_host }}; | |
charset utf-8; | |
client_max_body_size 75M; | |
location / { try_files $uri @app; } | |
location @app { | |
include uwsgi_params; | |
uwsgi_pass unix:/run/uwsgi/app/app/socket; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment