netbox/root/defaults/uwsgi.ini

12 lines
428 B
INI
Raw Normal View History

2022-01-14 16:07:44 +00:00
[uwsgi]
http-socket = :8000
enable-threads
plugin = python3
module = netbox.wsgi:application
static-map = /static=static
static-gzip-dir = static/CACHE
hook-pre-app = exec:/usr/bin/python3 ./manage.py collectstatic --noinput
hook-pre-app = exec:/usr/bin/python3 ./manage.py remove_stale_contenttypes --no-input
hook-pre-app = exec:/usr/bin/python3 ./manage.py clearsessions
attach-daemon = /usr/bin/python3 ./manage.py rqworker