|
@@ -117,7 +117,7 @@ To enable SSL, consider this guide on [securing Apache with Let's Encrypt](https
|
|
|
|
|
|
# gunicorn Installation
|
|
# gunicorn Installation
|
|
|
|
|
|
-Save the following configuration file in the root netbox installation path (in this example, `/opt/netbox/`) as `gunicorn_config.py`. Be sure to verify the location of the gunicorn executable (e.g. `which gunicorn`) and to update the `pythonpath` variable if needed.
|
|
|
|
|
|
+Save the following configuration file in the root netbox installation path (in this example, `/opt/netbox/`) as `gunicorn_config.py`. Be sure to verify the location of the gunicorn executable (e.g. `which gunicorn`) and to update the `pythonpath` variable if needed. If using centos/RHEL use the apache user instead of www-data.
|
|
|
|
|
|
```
|
|
```
|
|
command = '/usr/bin/gunicorn'
|
|
command = '/usr/bin/gunicorn'
|
|
@@ -127,6 +127,7 @@ workers = 3
|
|
user = 'www-data'
|
|
user = 'www-data'
|
|
```
|
|
```
|
|
|
|
|
|
|
|
+
|
|
# supervisord Installation
|
|
# supervisord Installation
|
|
|
|
|
|
Save the following as `/etc/supervisor/conf.d/netbox.conf`. Update the `command` and `directory` paths as needed.
|
|
Save the following as `/etc/supervisor/conf.d/netbox.conf`. Update the `command` and `directory` paths as needed.
|