uwsgi.ini 842 B

12345678910111213141516171819202122232425262728293031323334
  1. [uwsgi]
  2. ; bind to the specified UNIX/TCP socket and port (usually localhost)
  3. socket = 127.0.0.1:8001
  4. ; fail to start if any parameter in the configuration file isn’t explicitly understood by uWSGI.
  5. strict = true
  6. ; re-spawn and pre-fork workers
  7. master = true
  8. ; clear environment on exit
  9. vacuum = true
  10. ; make SIGTERM stop the app (instead of reload)
  11. die-on-term = true
  12. ; exit if no app can be loaded
  13. need-app = true
  14. ; do not use multiple interpreters
  15. single-interpreter = true
  16. ; change to the project directory
  17. chdir = netbox
  18. ; specify the WSGI module to load
  19. module = netbox.wsgi
  20. ; workaround to make uWSGI reloads work with pyuwsgi (not to be used if using uwsgi package instead)
  21. binary-path = venv/bin/python
  22. ; only log internal messages and errors (reverse proxy already logs the requests)
  23. disable-logging = true
  24. log-5xx = true