forked from massgo/flask-uwsgi-nginx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
uwsgi.ini
34 lines (28 loc) · 831 Bytes
/
uwsgi.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
[uwsgi]
# plugin = python
# this config will be loaded if nothing specific is specified
# load base config from below
ini = :base
# %d is the dir this configuration file is in
socket = /tmp/app.sock
master = true
processes = 4
[dev]
ini = :base
# socket (uwsgi) is not the same as http, nor http-socket
socket = :5001
[local]
ini = :base
http = :5000
# set the virtual env to use
# home=/Users/you/envs/env
[base]
# chdir to the folder of this config file, plus app/website
chdir = /opt/massgo/repos/mgaladder/
# load the module from wsgi.py, it is a python path from
# the directory above.
module=hello:app
# 666 allows anyone to connect to the socket. This is very permissive
chmod-socket=666
max-requests = 5000 # respawn processes after serving 5000 requests
harakiri = 20 # respawn processes taking more than 20 seconds