-
Notifications
You must be signed in to change notification settings - Fork 76
/
pod_uwsgi.ini
37 lines (33 loc) · 1.62 KB
/
pod_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
35
36
37
# pod_uwsgi.ini file
[uwsgi]
# Django-related settings
# the base directory (full path)
chdir = /home/pod/django_projects/podv3
# Django's wsgi file
module = pod.wsgi
# the virtualenv (full path)
home = /home/pod/.virtualenvs/django_pod3
# process-related settings
# master
master = true
# maximum number of worker processes
processes = 10
# the socket (use the full path to be safe
socket = /home/pod/django_projects/podv3/podv3.sock
# http = :8000
# ... with appropriate permissions - may be needed
chmod-socket = 666
# clear environment on exit
vacuum = true
# In case of numerous/long cookies and/or long query string, the HTTP header may exceed default 4k.
# When it occurs, uwsgi rejects those rejects with error "invalid request block size" and nginx returns HTTP 502.
# Allowing 8k is a safe value that still allows weird long cookies set on .univ-xxx.fr
buffer-size = 8192
# To log to files instead of stdout/stderr, use 'logto',
# or to simultaneously daemonize uWSGI, 'daemonize'.
# daemonize = /home/pod/django_projects/podv3/uwsgi/uwsgi-pod.log
# logto = /home/pod/django_projects/podv3/uwsgi/uwsgi-pod.log
# recommended params by https://www.techatbloomberg.com/blog/configuring-uwsgi-production-deployment/
strict = true ; This option tells uWSGI to fail to start if any parameter in the configuration file isn’t explicitly understood.
die-on-term = true ; Shutdown when receiving SIGTERM (default is respawn)
need-app = true ; This parameter prevents uWSGI from starting if it is unable to find or load your application module.