-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathapp.skel
23 lines (23 loc) · 994 Bytes
/
app.skel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[uwsgi]
strict = true
# %d absolute path of the directory containing the configuration file
# See https://uwsgi-docs.readthedocs.io/en/latest/Configuration.html#magic-variables
chdir = %d
virtualenv = %d/subscribie/venv
wsgi-file = %d/subscribie/subscribie.wsgi
env = PYTHON_PATH_INJECT=/path/to/repo
processes = 1
threads = 2
master = true
vacuum = true
# %n the filename without extension
# NOTE filename must be uniqe (socket must be
# uniq per app so we use the <webaddress>.ini
subscribe-to = /tmp/sock2:example.com
socket = /tmp/sockets/%n.sock
cron2 = minute=-1 curl -L example.com/admin/announce-stripe-connect
cron2 = minute=-10 curl -L example.com/admin/refresh-subscription-statuses
# Enable threads for threading module see subscribie.tasks
# see https://uwsgi-docs.readthedocs.io/en/latest/WSGIquickstart.html#a-note-on-python-threads
enable-threads = true
log-format = %(host) - %(addr) - %(user) [%(ltime)] "%(method) %(uri) %(proto)" %(status) %(size) "%(referer)" "%(uagent)"