Skip to content

Instantly share code, notes, and snippets.

@jdheyburn
Last active November 9, 2021 20:54
Show Gist options
  • Save jdheyburn/ca668a9d162535ab92db2cfa6f4e4e54 to your computer and use it in GitHub Desktop.
Save jdheyburn/ca668a9d162535ab92db2cfa6f4e4e54 to your computer and use it in GitHub Desktop.
{
"apps": {
"http": {
"servers": {
"srv0": {
"listen": [
":443"
],
"routes": [
{
"handle": [
{
"handler": "subroute",
"routes": [
{
"handle": [
{
"handler": "reverse_proxy",
"upstreams": [
{
"dial": "localhost:8093"
}
]
}
]
}
]
}
],
"match": [
{
"host": [
"pihole.joannet.casa"
]
}
],
"terminal": true
},
{
"handle": [
{
"handler": "subroute",
"routes": [
{
"handle": [
{
"handler": "reverse_proxy",
"transport": {
"protocol": "http",
"tls": {
"insecure_skip_verify": true
}
},
"upstreams": [
{
"dial": "localhost:8443"
}
]
}
]
}
]
}
],
"match": [
{
"host": [
"unifi.joannet.casa"
]
}
],
"terminal": true
}
],
"tls_connection_policies": [
{
"match": {
"sni": [
"pihole.joannet.casa",
"unifi.joannet.casa"
]
}
},
{}
]
}
}
},
"tls": {
"automation": {
"policies": [
{
"issuers": [
{
"challenges": {
"dns": {
"provider": {
"api_token": "CLOUDFLARE_API_TOKEN",
"name": "cloudflare"
}
}
},
"module": "acme"
}
],
"subjects": [
"pihole.joannet.casa",
"unifi.joannet.casa"
]
}
]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment