1
0
Fork 0
mirror of https://gitlab.com/famedly/conduit.git synced 2025-08-01 17:38:36 +00:00
conduit/tests/complement-caddy.json
2022-03-15 17:18:29 +01:00

119 lines
2.7 KiB
JSON

{
"logging": {
"logs": {
"default": {
"level": "WARN",
"writer": {
"output": "stdout"
},
"encoder": {
"format": "console"
}
}
}
},
"apps": {
"http": {
"servers": {
"srv0": {
"listen": [":8448"],
"routes": [
{
"match": [
{
"host": ["your.server.name", "*"]
}
],
"handle": [
{
"handler": "subroute",
"routes": [
{
"handle": [
{
"handler": "reverse_proxy",
"upstreams": [
{
"dial": "0.0.0.0:6167"
}
]
}
]
}
]
}
],
"terminal": true
}
]
},
"srv1": {
"listen": [":8008"],
"automatic_https": {
"disable": true,
"disable_redirects": true
},
"routes": [
{
"match": [
{
"host": ["your.server.name", "*"]
}
],
"handle": [
{
"handler": "subroute",
"routes": [
{
"handle": [
{
"handler": "reverse_proxy",
"upstreams": [
{
"dial": "0.0.0.0:6167"
}
]
}
]
}
]
}
],
"terminal": true
}
]
}
}
},
"tls": {
"automation": {
"policies": [
{
"subjects": ["your.server.name"],
"issuers": [
{
"module": "internal"
}
],
"on_demand": true
}
]
}
},
"pki": {
"certificate_authorities": {
"local": {
"name": "Complement CA",
"root": {
"certificate": "/ca/ca.crt",
"private_key": "/ca/ca.key"
},
"intermediate": {
"certificate": "/ca/ca.crt",
"private_key": "/ca/ca.key"
}
}
}
}
}
}