2021-09-27 13:17:41 +02:00
|
|
|
{
|
|
|
|
"apps": {
|
|
|
|
"tls": {
|
|
|
|
"automation": {
|
|
|
|
"policies": [
|
|
|
|
{
|
|
|
|
"issuers": [
|
|
|
|
{
|
|
|
|
"module": "acme",
|
|
|
|
"challenges": {
|
|
|
|
"tls-alpn": {
|
|
|
|
"disabled": true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"http": {
|
|
|
|
"servers": {
|
|
|
|
"srv0": {
|
2021-11-17 23:32:40 +01:00
|
|
|
"listen": [":8000"],
|
2021-09-27 13:17:41 +02:00
|
|
|
"allow_h2c": true,
|
|
|
|
"routes": [
|
|
|
|
{
|
|
|
|
"handle": [
|
|
|
|
{
|
|
|
|
"flush_interval": -1,
|
|
|
|
"handler": "reverse_proxy",
|
|
|
|
"upstreams": [
|
|
|
|
{
|
|
|
|
"dial": "$AUTOUPDATE_HOST:$AUTOUPDATE_PORT"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"match": [
|
|
|
|
{
|
2021-11-17 23:32:40 +01:00
|
|
|
"path": ["/system/autoupdate*"]
|
2021-09-27 13:17:41 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"handle": [
|
|
|
|
{
|
|
|
|
"handler": "reverse_proxy",
|
|
|
|
"upstreams": [
|
|
|
|
{
|
|
|
|
"dial": "$PRESENTER_HOST:$PRESENTER_PORT"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"match": [
|
|
|
|
{
|
2021-11-17 23:32:40 +01:00
|
|
|
"path": ["/system/presenter*"]
|
2021-09-27 13:17:41 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"handle": [
|
|
|
|
{
|
|
|
|
"handler": "reverse_proxy",
|
|
|
|
"upstreams": [
|
|
|
|
{
|
|
|
|
"dial": "$ACTION_HOST:$ACTION_PORT"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"match": [
|
|
|
|
{
|
2021-11-17 23:32:40 +01:00
|
|
|
"path": ["/system/action*"]
|
2021-09-27 13:17:41 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"handle": [
|
|
|
|
{
|
|
|
|
"handler": "reverse_proxy",
|
|
|
|
"upstreams": [
|
|
|
|
{
|
|
|
|
"dial": "$MEDIA_HOST:$MEDIA_PORT"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"match": [
|
|
|
|
{
|
2021-11-17 23:32:40 +01:00
|
|
|
"path": ["/system/media*"]
|
2021-09-27 13:17:41 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"handle": [
|
|
|
|
{
|
|
|
|
"handler": "reverse_proxy",
|
|
|
|
"upstreams": [
|
|
|
|
{
|
|
|
|
"dial": "$AUTH_HOST:$AUTH_PORT"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"match": [
|
|
|
|
{
|
2021-11-17 23:32:40 +01:00
|
|
|
"path": ["/system/auth*"]
|
2021-09-27 13:17:41 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"handle": [
|
|
|
|
{
|
|
|
|
"flush_interval": -1,
|
|
|
|
"handler": "reverse_proxy",
|
|
|
|
"upstreams": [
|
|
|
|
{
|
|
|
|
"dial": "$ICC_HOST:$ICC_PORT"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"match": [
|
|
|
|
{
|
2021-11-17 23:32:40 +01:00
|
|
|
"path": ["/system/icc*"]
|
2021-09-27 13:17:41 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2022-01-12 17:11:21 +01:00
|
|
|
{
|
|
|
|
"handle": [
|
|
|
|
{
|
|
|
|
"handler": "reverse_proxy",
|
|
|
|
"upstreams": [
|
|
|
|
{
|
|
|
|
"dial": "$VOTE_HOST:$VOTE_PORT"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"match": [
|
|
|
|
{
|
|
|
|
"path": ["/system/vote*"]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2021-09-27 13:17:41 +02:00
|
|
|
{
|
|
|
|
"handle": [
|
|
|
|
{
|
|
|
|
"handler": "reverse_proxy",
|
|
|
|
"flush_interval": -1,
|
|
|
|
"transport": {
|
|
|
|
"protocol": "http",
|
2021-11-17 23:32:40 +01:00
|
|
|
"versions": ["2", "h2c"]
|
2021-09-27 13:17:41 +02:00
|
|
|
},
|
|
|
|
"upstreams": [
|
|
|
|
{
|
|
|
|
"dial": "$MANAGE_HOST:$MANAGE_PORT"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"match": [
|
|
|
|
{
|
|
|
|
"header": {
|
2021-11-17 23:32:40 +01:00
|
|
|
"Content-Type": ["application/grpc"]
|
2021-09-27 13:17:41 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2021-11-17 23:32:40 +01:00
|
|
|
{
|
|
|
|
"handle": [
|
|
|
|
{
|
2022-01-12 17:11:21 +01:00
|
|
|
"body": "Misdirected Request",
|
|
|
|
"close": true,
|
|
|
|
"handler": "static_response",
|
|
|
|
"status_code": 421
|
2021-11-17 23:32:40 +01:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"match": [
|
|
|
|
{
|
2022-01-12 17:11:21 +01:00
|
|
|
"not": [
|
|
|
|
{
|
|
|
|
"header": {
|
|
|
|
"Host": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2021-11-17 23:32:40 +01:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2021-09-27 13:17:41 +02:00
|
|
|
{
|
|
|
|
"handle": [
|
|
|
|
{
|
|
|
|
"handler": "reverse_proxy",
|
|
|
|
"upstreams": [
|
|
|
|
{
|
|
|
|
"dial": "$CLIENT_HOST:$CLIENT_PORT"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"automatic_https": {
|
|
|
|
"disable": true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|