Created
March 24, 2017 15:32
-
-
Save macmata/75b652fa60f0370074c1f1cbd5fa92f0 to your computer and use it in GitHub Desktop.
uswgi config
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
user www-data; | |
worker_processes 2; | |
error_log logs/error.log debug; | |
pid logs/nginx.pid; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
include mime.types; | |
error_log logs/error.log debug; | |
sendfile on; | |
keepalive_timeout 65; | |
include /etc/nginx/conf-enabled/*; | |
} | |
------------------------------------------------------- | |
server { | |
listen 88; | |
server_name _; | |
charset utf-8; | |
client_max_body_size 75M; | |
error_log logs/error.log debug; | |
location / { | |
error_log logs/error.log debug; | |
include uwsgi_params; | |
uwsgi_pass unix:/flask_test/myproject.sock; | |
uwsgi_temp_path /var/lib/nginx/uwsgi; | |
} | |
} | |
--------------------------------------------------------- | |
[uwsgi] | |
master = true | |
wsgi-file = myproject.py | |
callable = app | |
processes = 4 | |
threads = 2 | |
socket = myproject.sock | |
gid = www-data | |
uid = www-data | |
chmod-socket = 664 | |
vacuum = true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment