Caddy docker using tag :alpine
Caddy is serving plain http traffic over both ports with this configuration. Why is port 443 not https?
I am trying to get tls on demand for any host name that hits the instance with automatic https. But I still want plain http traffic passed to the backend as not all requests are https. So I have disabled automatic http to https redirect
Config:
{
"admin": {
"disabled": true
},
"apps": {
"http": {
"servers": {
"srv0": {
"automatic_https": {
"disable_redirects": true
},
"listen": [
":80",
":443"
],
"routes": [
{
"handle": [
{
"handler": "subroute",
"routes": [
{
"handle": [
{
"buffer_requests": true,
"handler": "reverse_proxy",
"upstreams": [
{
"dial": "web:5000"
}
]
}
]
}
]
}
],
"terminal": true
}
]
}
}
},
"tls": {
"automation": {
"policies": [
{
"issuer": {
"email": "foo@example.com",
"module": "acme"
},
"on_demand": true
}
]
}
}
},
"logging": {
"logs": {
"default": {
"level": "DEBUG"
}
}
}
}