Skip to content

Instantly share code, notes, and snippets.

@lpellegr
Last active Mar 16, 2021
Embed
What would you like to do?
{
"storage": {
"Client": null,
"ClientLocker": null,
"Logger": null,
"address": "",
"aes_key": "",
"db": "...",
"host": "...",
"key_prefix": "caddy",
"module": "redis",
"password": "...",
"port": "...",
"timeout": 10,
"tls_enabled": false,
"tls_insecure": true,
"username": "...",
"value_prefix": "caddy-storage"
},
"apps": {
"http": {
"servers": {
"srv0": {
"listen": [
":443"
],
"routes": [
{
"handle": [
{
"handler": "subroute",
"routes": [
{
"handle": [
{
"encodings": {
"gzip": {},
"zstd": {}
},
"handler": "encode"
},
{
"handler": "reverse_proxy",
"headers": {
"request": {
"add": {
"Acme-Domain": [
"{http.request.host}"
]
},
"set": {
"Host": [
"{http.reverse_proxy.upstream.hostport}"
]
}
},
"response": {
"delete": [
"server"
]
}
},
"health_checks": {
"passive": {
"fail_duration": 55000000000
}
},
"transport": {
"protocol": "http",
"tls": {}
},
"upstreams": [
{
"dial": "acme-newspage-vasm4c6eca-uc.a.run.app:443"
}
]
}
]
}
]
}
],
"terminal": true
},
{
"match": [
{
"host": [
"*.staging.acme.news"
]
}
],
"handle": [
{
"handler": "subroute",
"routes": [
{
"handle": [
{
"encodings": {
"gzip": {},
"zstd": {}
},
"handler": "encode"
},
{
"handler": "reverse_proxy",
"headers": {
"request": {
"add": {
"Acme-Domain": [
"{http.request.host}"
]
},
"set": {
"Host": [
"{http.reverse_proxy.upstream.hostport}"
]
}
},
"response": {
"delete": [
"server"
]
}
},
"health_checks": {
"passive": {
"fail_duration": 55000000000
}
},
"transport": {
"protocol": "http",
"tls": {}
},
"upstreams": [
{
"dial": "acme-newspage-ovj16u24ja-uc.a.run.app:443"
}
]
}
]
}
]
}
],
"terminal": true
}
]
}
}
},
"tls": {
"automation": {
"policies": [
{
"issuers": [
{
"email": "support@acme.io",
"module": "acme"
},
{
"email": "support@acme.io",
"module": "zerossl"
}
],
"on_demand": true
}
],
"on_demand": {
"rate_limit": {
"interval": 60000000000,
"burst": 60
},
"ask": "https://service.acme.io/newspages"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment