Skip to content

Instantly share code, notes, and snippets.

@bitwisecook
Created August 10, 2017 12:34
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 bitwisecook/747e6e7f6381546c9f86908d0b398da7 to your computer and use it in GitHub Desktop.
Save bitwisecook/747e6e7f6381546c9f86908d0b398da7 to your computer and use it in GitHub Desktop.
nginx.conf Jinja template for ngnix+uWSGI+flask app
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