2024-03-28 12:24:08 -07:00
|
|
|
|
[uwsgi]
|
|
|
|
|
; bind to the specified UNIX/TCP socket and port (usually localhost)
|
|
|
|
|
socket = 127.0.0.1:8001
|
|
|
|
|
|
|
|
|
|
; fail to start if any parameter in the configuration file isn’t explicitly understood by uWSGI.
|
|
|
|
|
strict = true
|
|
|
|
|
|
|
|
|
|
; re-spawn and pre-fork workers
|
|
|
|
|
master = true
|
|
|
|
|
|
|
|
|
|
; clear environment on exit
|
|
|
|
|
vacuum = true
|
|
|
|
|
|
2024-05-08 21:51:54 +03:00
|
|
|
|
; make SIGTERM stop the app (instead of reload)
|
|
|
|
|
die-on-term = true
|
|
|
|
|
|
2024-03-28 12:24:08 -07:00
|
|
|
|
; exit if no app can be loaded
|
|
|
|
|
need-app = true
|
|
|
|
|
|
|
|
|
|
; do not use multiple interpreters
|
|
|
|
|
single-interpreter = true
|
2024-05-08 17:04:37 +03:00
|
|
|
|
|
|
|
|
|
; change to the project directory
|
|
|
|
|
chdir = netbox
|
|
|
|
|
|
|
|
|
|
; specify the WSGI module to load
|
|
|
|
|
module = netbox.wsgi
|
2024-05-08 17:42:41 +03:00
|
|
|
|
|
|
|
|
|
; only log internal messages and errors (reverse proxy already logs the requests)
|
|
|
|
|
disable-logging = true
|
|
|
|
|
log-5xx = true
|