netbox-docker/docker/nginx-unit.json

58 lines
1009 B
JSON
Raw Normal View History

{
2021-02-08 10:54:08 +01:00
"listeners": {
"0.0.0.0:8080": {
2022-10-07 08:08:30 +02:00
"pass": "routes/main"
},
"[::]:8080": {
2022-10-07 08:08:30 +02:00
"pass": "routes/main"
},
"0.0.0.0:8081": {
"pass": "routes/status"
},
"[::]:8081": {
"pass": "routes/status"
2021-02-08 10:54:08 +01:00
}
},
2022-10-07 08:08:30 +02:00
"routes": {
"main": [
{
"match": {
"uri": "/static/*"
},
"action": {
"share": "/opt/netbox/netbox${uri}"
}
2021-02-08 10:54:08 +01:00
},
2022-10-07 08:08:30 +02:00
{
"action": {
"pass": "applications/netbox"
}
2021-02-08 10:54:08 +01:00
}
2022-10-07 08:08:30 +02:00
],
"status": [
{
"match": {
"uri": "/status/*"
},
"action": {
"proxy": "http://unix:/opt/unit/unit.sock"
}
2021-02-08 10:54:08 +01:00
}
2022-10-07 08:08:30 +02:00
]
},
2021-02-08 10:54:08 +01:00
"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"
}