1. Caddy version (2.4.0
):
2. How I run Caddy:
It sits in a folder on my servers desktop and it is ran with: ‘.\caddy.exe run --watch’
a. System environment:
Windows 10 pro
b. Command:
'.\caddy.exe run --watch'
c. Service/unit/compose file:
Paste full file contents here.
Make sure backticks stay on their own lines,
and the post looks nice in the preview pane.
d. My complete Caddyfile or JSON config:
{
email omar93@hotmail.se
http_port 80
https_port 443
admin localhost:2019
}
gemberss.duckdns.org {
tls {
trusted_ca_cert_file ./gemberss.duckdns.org/cert1.pem
}
reverse_proxy localhost:3233
}
omarius.duckdns.org {
reverse_proxy localhost:3233
}
plex.almanzel.eu {
reverse_proxy localhost:32400
}
webportal.almanzel.eu {
reverse_proxy localhost:3233
}
omar.almanzel.eu {
reverse_proxy 192.168.10.224:5000
}
code.almanzel.eu {
reverse_proxy localhost:8443
}
3. The problem I’m having:
I am hosting a couple of services on my server, instead of port forwarding I am a reverse proxy so I used caddy because of automated TLS, to the domain name, I have purchased a domain name let’s almanzel.eu, but I can not route that to my routers IP address, so I use DUCKDNS and let’s call it router.duckdns.org.
From the omar.eu domains I create subdomain and I change the DNS settings of example: code.omar.eu to have it’s CNAME point to router.duckdns.org, router.duckdns.org points to my router because my router supports it.
The problem is when I use any of the subdomains on omar.eu like code.omar.eu it works on my LAN only, I get the padlock in the browser but as soon as I am outside the network it does not, I suspect I am missing something, maybe the DUCKDNS does not have a certificate? I tried using CRTBOT to make certificates for the DUCKDNS domains, but that didn’t change anything
4. Error messages and/or full log output:
5. What I already tried:
Adding certificates from CERTBOT to DUCKDNS domains