Updated to new unit version

This commit is contained in:
Tobias Genannt
2022-10-07 08:08:30 +02:00
parent 879c700bb8
commit d3a30e1172
5 changed files with 41 additions and 23 deletions

View File

@ -1,30 +1,45 @@
{
"listeners": {
"0.0.0.0:8080": {
"pass": "routes"
"pass": "routes/main"
},
"[::]:8080": {
"pass": "routes"
"pass": "routes/main"
},
"0.0.0.0:8081": {
"pass": "routes/status"
},
"[::]:8081": {
"pass": "routes/status"
}
},
"routes": [
{
"match": {
"uri": "/static/*"
"routes": {
"main": [
{
"match": {
"uri": "/static/*"
},
"action": {
"share": "/opt/netbox/netbox${uri}"
}
},
"action": {
"share": "/opt/netbox/netbox${uri}"
{
"action": {
"pass": "applications/netbox"
}
}
},
{
"action": {
"pass": "applications/netbox"
],
"status": [
{
"match": {
"uri": "/status/*"
},
"action": {
"proxy": "http://unix:/opt/unit/unit.sock"
}
}
}
],
]
},
"applications": {
"netbox": {
"type": "python 3",
@ -38,6 +53,5 @@
}
}
},
"access_log": "/dev/stdout"
}