I’m using a local domain that I don’t own, but browsers tend to automatically address the non https variants when written without http://
I’ve completed the questions below:
2. Error messages and/or full log output:
n/a
3. Caddy version:
v2.7.6 h1:w0NymbG2m9PcvK...
4. How I installed and ran Caddy:
I’m using GitHub - lucaslorentz/caddy-docker-proxy: Caddy as a reverse proxy for Docker
a. System environment:
b. Command:
c. Service/unit/compose file:
services:
docker-proxy-caddy:
image: lucaslorentz/caddy-docker-proxy:ci-alpine
ports:
- 80:80
- 443:443
environment:
- CADDY_INGRESS_NETWORKS=proxynetwork
networks:
- proxynetwork
labels:
caddy_0: "ubl-mesh-tool.<private>.nl"
caddy_0.root: "* /data/static/ubl-mesh-tool"
caddy_0.file_server: ""
# I'm trying to get a non-docker container to be proxied from that address.
# Still figuring out the syntax, but this is besides the current topic
caddy_1: "http://klipper.local.co"
caddy_1.reverse_proxy: ""
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /mnt/user/appdata/caddy-docker-proxy:/data
- /mnt/user/appdata/caddy-docker-proxy:/static
restart: unless-stopped
networks:
proxynetwork:
external: true
d. My complete Caddy config:
Caddyfile.autosave
<private>.<private>.nu, http://change.local.co, http://changedetection.local.co {
reverse_proxy 172.18.0.7:5000
}
http://bind.local.co {
reverse_proxy 192.168.1.4:10000
}
http://chrome.local.co {
reverse_proxy 172.18.0.20:3000
}
http://flaresolverr.local.co {
reverse_proxy 172.18.0.18:8191
}
http://jellyfin.local.co {
reverse_proxy http://192.168.1.3:8096
}
http://krusader.local.co {
reverse_proxy 172.18.0.9:6080
}
http://netdata.local.co {
reverse_proxy 172.18.0.12:19999
}
http://orca.local.co {
reverse_proxy 172.18.0.3:3000
}
http://photos.local.co {
reverse_proxy 172.18.0.6:2342
}
http://portainer.local.co {
reverse_proxy 172.18.0.19:9000
}
http://speedtest.local.co {
reverse_proxy 172.18.0.11:80
}
http://speedtracker.local.co {
reverse_proxy 172.18.0.10:8082
}
http://zb.local.co {
reverse_proxy 172.18.0.16:8099
}
<private>.<private>.nu, http://password.local.co {
reverse_proxy 172.18.0.17:80
}
www.<private>.nl, <private>.nl, http://<private>.local.co, http://<private>.local {
reverse_proxy 172.18.0.21:3000
}
autosave.json
{
"admin": { "listen": "tcp/localhost:2019" },
"apps": {
"http": {
"servers": {
"srv0": {
"listen": [":443"],
"routes": [
{
"handle": [
{
"handler": "subroute",
"routes": [
{
"handle": [
{
"handler": "reverse_proxy",
"upstreams": [{ "dial": "172.18.0.21:3000" }]
}
]
}
]
}
],
"match": [
{ "host": ["www.<private>.nl", "<private>.nl"] }
],
"terminal": true
},
{
"handle": [
{
"handler": "subroute",
"routes": [
{
"handle": [
{
"handler": "reverse_proxy",
"upstreams": [{ "dial": "172.18.0.17:80" }]
}
]
}
]
}
],
"match": [{ "host": ["<private>.nu"] }],
"terminal": true
},
{
"handle": [
{
"handler": "subroute",
"routes": [
{
"handle": [
{
"handler": "reverse_proxy",
"upstreams": [{ "dial": "172.18.0.7:5000" }]
}
]
}
]
}
],
"match": [{ "host": ["<private>.<private>.nu"] }],
"terminal": true
}
]
},
"srv1": {
"listen": [":80"],
"routes": [
{
"handle": [
{
"handler": "subroute",
"routes": [
{
"handle": [
{
"handler": "reverse_proxy",
"upstreams": [{ "dial": "172.18.0.7:5000" }]
}
]
}
]
}
],
"match": [
{ "host": ["change.local.co", "changedetection.local.co"] }
],
"terminal": true
},
{
"handle": [
{
"handler": "subroute",
"routes": [
{
"handle": [
{
"handler": "reverse_proxy",
"upstreams": [{ "dial": "172.18.0.18:8191" }]
}
]
}
]
}
],
"match": [{ "host": ["flaresolverr.local.co"] }],
"terminal": true
},
{
"handle": [
{
"handler": "subroute",
"routes": [
{
"handle": [
{
"handler": "reverse_proxy",
"upstreams": [{ "dial": "172.18.0.10:8082" }]
}
]
}
]
}
],
"match": [{ "host": ["speedtracker.local.co"] }],
"terminal": true
},
{
"handle": [
{
"handler": "subroute",
"routes": [
{
"handle": [
{
"handler": "reverse_proxy",
"upstreams": [{ "dial": "172.18.0.19:9000" }]
}
]
}
]
}
],
"match": [{ "host": ["portainer.local.co"] }],
"terminal": true
},
{
"handle": [
{
"handler": "subroute",
"routes": [
{
"handle": [
{
"handler": "reverse_proxy",
"upstreams": [{ "dial": "172.18.0.11:80" }]
}
]
}
]
}
],
"match": [{ "host": ["speedtest.local.co"] }],
"terminal": true
},
{
"handle": [
{
"handler": "subroute",
"routes": [
{
"handle": [
{
"handler": "reverse_proxy",
"upstreams": [{ "dial": "192.168.1.3:8096" }]
}
]
}
]
}
],
"match": [{ "host": ["jellyfin.local.co"] }],
"terminal": true
},
{
"handle": [
{
"handler": "subroute",
"routes": [
{
"handle": [
{
"handler": "reverse_proxy",
"upstreams": [{ "dial": "172.18.0.9:6080" }]
}
]
}
]
}
],
"match": [{ "host": ["krusader.local.co"] }],
"terminal": true
},
{
"handle": [
{
"handler": "subroute",
"routes": [
{
"handle": [
{
"handler": "reverse_proxy",
"upstreams": [{ "dial": "172.18.0.12:19999" }]
}
]
}
]
}
],
"match": [{ "host": ["netdata.local.co"] }],
"terminal": true
},
{
"handle": [
{
"handler": "subroute",
"routes": [
{
"handle": [
{
"handler": "reverse_proxy",
"upstreams": [{ "dial": "172.18.0.20:3000" }]
}
]
}
]
}
],
"match": [{ "host": ["chrome.local.co"] }],
"terminal": true
},
{
"handle": [
{
"handler": "subroute",
"routes": [
{
"handle": [
{
"handler": "reverse_proxy",
"upstreams": [{ "dial": "172.18.0.6:2342" }]
}
]
}
]
}
],
"match": [{ "host": ["photos.local.co"] }],
"terminal": true
},
{
"handle": [
{
"handler": "subroute",
"routes": [
{
"handle": [
{
"handler": "reverse_proxy",
"upstreams": [{ "dial": "172.18.0.21:3000" }]
}
]
}
]
}
],
"match": [{ "host": ["<private>.local.co", "<private>.local"] }],
"terminal": true
},
{
"handle": [
{
"handler": "subroute",
"routes": [
{
"handle": [
{
"handler": "reverse_proxy",
"upstreams": [{ "dial": "192.168.1.4:10000" }]
}
]
}
]
}
],
"match": [{ "host": ["bind.local.co"] }],
"terminal": true
},
{
"handle": [
{
"handler": "subroute",
"routes": [
{
"handle": [
{
"handler": "reverse_proxy",
"upstreams": [{ "dial": "172.18.0.3:3000" }]
}
]
}
]
}
],
"match": [{ "host": ["orca.local.co"] }],
"terminal": true
},
{
"handle": [
{
"handler": "subroute",
"routes": [
{
"handle": [
{
"handler": "reverse_proxy",
"upstreams": [{ "dial": "172.18.0.16:8099" }]
}
]
}
]
}
],
"match": [{ "host": ["zb.local.co"] }],
"terminal": true
}
]
}
}
}
}
}
5. Links to relevant resources: