2020-11-10 15:23:07 +01:00
|
|
|
{
|
2021-02-08 10:54:08 +01:00
|
|
|
"listeners": {
|
2022-11-23 14:40:03 +01:00
|
|
|
"0.0.0.0:8080": {
|
2022-10-07 08:08:30 +02:00
|
|
|
"pass": "routes/main"
|
2022-11-23 14:40:03 +01:00
|
|
|
},
|
|
|
|
"[::]: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"
|
2020-11-10 15:23:07 +01:00
|
|
|
}
|