1. Caddy version (caddy version
):
2.2.1
2. How I run Caddy:
via docker compose
a. System environment:
b. Command:
paste command here
c. Service/unit/compose file:
on both machines more or less like this
caddy:
image: caddy:2.2.1-alpine
restart: unless-stopped
container_name: caddy
ports:
- "80:80"
- "443:443"
- "2019:2019"
volumes:
- /dockerdata/stuff/media/config/caddy/Caddyfile:/etc/caddy/Caddyfile
- /dockerdata/stuff/media/data/caddy/site:/srv
- /dockerdata/stuff/media/data/caddy:/data
- /dockerdata/stuff/media/config/caddy:/config
d. My complete Caddyfile or JSON config:
http://192.168.5.44 {
reverse_proxy /sonarr* http://sonarr:8989
reverse_proxy /transmission* http://transmission:9091
reverse_proxy /radarr* http://radarr:7878
reverse_proxy /bazarr* http://bazarr:6767
reverse_proxy /jellyfin* http://jellyfin:8096
reverse_proxy /hydra* http://hydra:5076
reverse_proxy * http://heimdall:80
}
subdomain1.example.com {
reverse_proxy /sonarr* http://sonarr:8989
reverse_proxy /transmission* http://transmission:9091
reverse_proxy /radarr* http://radarr:7878
reverse_proxy /bazarr* http://bazarr:6767
reverse_proxy /jellyfin* http://jellyfin:8096
reverse_proxy /hydra* http://hydra:5076
reverse_proxy * http://heimdall:80
}
on the other machine i tried both https and http, ports 80 and 443
subdomain1.example.com {
reverse_proxy http://192.168.5.44
}
3. The problem I’m having:
I’m trying to have all my requests go through one port to 1 vm which then sends those requests to other vms, in this example to another caddy server who proxies it to some docker apps. Currently with just the first Caddyfile and port forwarded to that vm everything works.
There are no errors, the web browser is just not opening anything.
5. What I already tried:
I tried to add
header_up Host {http.reverse_proxy.upstream.hostport}
but there was no change.
Sorry if i explained it badly, i don’t have much experience with networks.