dockerfiles/caddy/config-sample.json

146 lines
3.5 KiB
JSON

{
"apps": {
"http": {
"servers": {
"srv0": {
"listen": [
":443"
],
"routes": [
{
"handle": [
{
"handler": "subroute",
"routes": [
{
"handle": [
{
"handler": "reverse_proxy",
"upstreams": [
{
"dial": ":9002"
}
]
}
]
}
]
}
],
"match": [
{
"host": [
"ns61.siliconpin.com"
]
}
],
"terminal": true
}
]
},
"srv1": {
"automatic_https": {
"skip": [
"stage.internal",
"code.internal",
"dev.internal"
]
},
"listen": [
":8080"
],
"routes": [
{
"handle": [
{
"handler": "subroute",
"routes": [
{
"handle": [
{
"handler": "reverse_proxy",
"upstreams": [
{
"dial": "127.0.0.1:8082"
}
]
}
]
}
]
}
],
"match": [
{
"host": [
"stage.internal"
]
}
],
"terminal": true
},
{
"handle": [
{
"handler": "subroute",
"routes": [
{
"handle": [
{
"handler": "reverse_proxy",
"upstreams": [
{
"dial": "localhost:8081"
}
]
}
]
}
]
}
],
"match": [
{
"host": [
"code.internal"
]
}
],
"terminal": true
},
{
"handle": [
{
"handler": "subroute",
"routes": [
{
"handle": [
{
"handler": "reverse_proxy",
"upstreams": [
{
"dial": "internal-site:8083"
}
]
}
]
}
]
}
],
"match": [
{
"host": [
"dev.internal"
]
}
],
"terminal": true
}
]
}
}
}
}
}