1. Caddy version (caddy version
):
Latest
2. How I run Caddy:
Caddyfile with docker
a. System environment:
Kubuntu 20.4 with docker. Pi-Hole as local DNS.
c. Service/unit/compose file:
version: "2.1"
services:
caddy:
container_name: caddy
image: caddy:latest
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./caddy/Caddyfile:/etc/caddy/Caddyfile
- caddy_data:/data
- caddy_config:/config
d. My complete Caddyfile or JSON config:
jelly.me.com {
reverse_proxy jellyfin:8096
}
http://cockpit, http://cockpit.lan {
reverse_proxy 172.17.0.1:9090
}
http://pi.hole, http://pihole, http://pi.hole.lan, http://pihole.lan {
rewrite * /admin{uri}
reverse_proxy pihole-server:80
}
http://logs, http://logs.lan {
reverse_proxy dozzle:8080
}
3. The problem I’m having:
I added an endpoint to my Caddyfile, which is the only endpoint not running in a docker container, but running on my host machine.
http://cockpit, http://cockpit.lan {
reverse_proxy 172.17.0.1:9090
}
For some reason, I get redirected to https and an error: (from firefox)
Secure Connection Failed
An error occurred during a connection to cockpit.lan. Peer reports it experienced an internal error.
Error code: SSL_ERROR_INTERNAL_ERROR_ALERT
No output from the Caddy logs.
5. What I already tried:
Toggling various TLS settings and switching the IP to the lan IP.
Not sure what is going on. Every other endpoint works as normal. The only difference with this on is that it’s not located inside the docker container.