mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2024-11-27 02:14:14 +01:00
d273391773
We now serve Netbox with an nginx-unit instance instead of Gunicorn. This allows us to get rid of the extra Nginx container because Unit is also serving the static files. The static files are now collected at container buildtime instead of every startup.
41 lines
772 B
JSON
41 lines
772 B
JSON
{
|
|
"listeners": {
|
|
"*:8080": {
|
|
"pass": "routes"
|
|
}
|
|
},
|
|
|
|
"routes": [
|
|
{
|
|
"match": {
|
|
"uri": "/static/*"
|
|
},
|
|
"action": {
|
|
"share": "/opt/netbox/netbox"
|
|
}
|
|
},
|
|
|
|
{
|
|
"action": {
|
|
"pass": "applications/netbox"
|
|
}
|
|
}
|
|
],
|
|
|
|
"applications": {
|
|
"netbox": {
|
|
"type": "python 3",
|
|
"path": "/opt/netbox/netbox/",
|
|
"module": "netbox.wsgi",
|
|
"home": "/opt/netbox/venv",
|
|
"processes": {
|
|
"max": 4,
|
|
"spare": 1,
|
|
"idle_timeout": 120
|
|
}
|
|
}
|
|
},
|
|
|
|
"access_log": "/dev/stdout"
|
|
}
|