Improve uWSGI config
This commit is contained in:
parent
31a4acf8c4
commit
ef32df0300
1 changed files with 3 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
|||
[uwsgi]
|
||||
strict = true # Fail if unknown config parameter found.
|
||||
need-app = true # Fail to start if application cannot load
|
||||
plugins = python3
|
||||
chdir = {{ project_dir }}
|
||||
home = {{ virtualenv }}
|
||||
|
|
@ -10,9 +11,10 @@ processes = 3
|
|||
harakiri = 30
|
||||
max-requests = 5000
|
||||
vacuum = true
|
||||
procname-prefix-spaced = {{ site_name }}
|
||||
# For Sentry, see https://docs.sentry.io/clients/python/advanced/#a-note-on-uwsgi.
|
||||
enable-threads = true
|
||||
log-prefix = {{ site_name }}
|
||||
log-encoder = format {{ site_name }} ${msgnl}
|
||||
|
||||
# Enable uWSGI stats server for use with uwsgitop.
|
||||
# Run with: `sudo -u www-data uwsgitop /run/{{ site_name }}/django_uwsgi_stats.socket`
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue