From 503ac975328fac9a2b0b9ae571b4435714cdfcec Mon Sep 17 00:00:00 2001 From: Arthur Date: Mon, 25 Mar 2024 09:05:50 -0700 Subject: [PATCH] 15154 update docs and ini file --- contrib/uwsgi.ini | 12 ++++++++++++ docs/installation/4-uwsgi.md | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 contrib/uwsgi.ini diff --git a/contrib/uwsgi.ini b/contrib/uwsgi.ini new file mode 100644 index 000000000..1126e1003 --- /dev/null +++ b/contrib/uwsgi.ini @@ -0,0 +1,12 @@ +[uwsgi] +; 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 + +; exit if no app can be loaded +need-app = true diff --git a/docs/installation/4-uwsgi.md b/docs/installation/4-uwsgi.md index 4641e6aed..47b50d722 100644 --- a/docs/installation/4-uwsgi.md +++ b/docs/installation/4-uwsgi.md @@ -10,7 +10,7 @@ NetBox ships with a default configuration file for uWSGI. To use it, copy `/opt/ sudo cp /opt/netbox/contrib/uwsgi.ini /opt/netbox/uwsgi.ini ``` -While the provided configuration should suffice for most initial installations, you may wish to edit this file to change the bound IP address and/or port number, or to make performance-related adjustments. See [the uWSGI documentation](https://uwsgi-docs-additions.readthedocs.io/en/latest/Options.html) for the available configuration parameters. +While the provided configuration should suffice for most initial installations, you may wish to edit this file to change the bound IP address and/or port number, or to make performance-related adjustments. See [the uWSGI documentation](https://uwsgi-docs-additions.readthedocs.io/en/latest/Options.html) for the available configuration parameters. Django also provides [additional documentation](https://docs.djangoproject.com/en/5.0/howto/deployment/wsgi/uwsgi/) on configuring uWSGI with a Django app. ## systemd Setup