2020-11-10 15:23:07 +01:00
|
|
|
{
|
2021-02-08 10:54:08 +01:00
|
|
|
"listeners": {
|
2024-11-05 12:52:50 +01:00
|
|
|
"*:8080": {
|
|
|
|
"pass": "routes/main",
|
|
|
|
"forwarded": {
|
|
|
|
"client_ip": "X-Forwarded-For",
|
|
|
|
"protocol": "X-Forwarded-Proto",
|
|
|
|
"source": ["10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"]
|
|
|
|
}
|
2022-10-07 08:08:30 +02:00
|
|
|
},
|
2024-11-05 12:52:50 +01:00
|
|
|
"*:8081": {
|
|
|
|
"pass": "routes/status",
|
|
|
|
"forwarded": {
|
|
|
|
"client_ip": "X-Forwarded-For",
|
|
|
|
"protocol": "X-Forwarded-Proto",
|
|
|
|
"source": ["10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"]
|
|
|
|
}
|
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
|
|
|
}
|