Hello everyone!
I’m trying to get Caddy working on my little rock64 at home with OMV (arm64v8 and Docker).
I already have a Caddy configured on a Windows vps and it works wonder, I don’t know if this is because on my vps I configured only plain subdomains, btw.
I’m trying to follow this schema: subdomain.domain.com
for my Windows vps and sub.home.domain.com
for my OMV device.
I also have Cloudflare for my domain since I had Namecheap but it was way too slow to propagate DNS changes (sometimes when I created some TXT domain for SSL verification, Namecheap never propagated them). CF is configured in Full (Strict) SSL mode and I always try to non use its CDN.
Here’s a portion of the configuration on my Windows VPS that works:
subdomain.domain.com {
gzip
proxy / 127.0.0.1:5001 {
transparent
}
}
This generates the certificate, and then correctly sets http://subdomain.domain.com
to https://subdomain.domain.com
This, instead, is a portion of the configuration of a domain on my OMV device:
subdomain.home.domain.com {
gzip
proxy / 192.168.1.140:8089 {
transparent
}
}
If I leave as this is, it correctly verify the certificate, then the logs says that Caddy activated http://subdomain.home.domain.com:2015
and https://subdomain.home.domain.com:2015
(why 2015? Shouldn’t it be 80 and 443 as the other domain?) but, when I go to that domain: 404 Site subdomain.home.domain.com is not served on this interface
when not using https, and ERR_SSL_PROTOCOL_ERROR
when using it.
If, instead I put
tls {
dns cloudflare
}
(if I activate the CDN on CF) on my Windows vps it gets correctly the certificate from CF, but instead if using it at home it gives ERR_SSL_PROTOCOL_ERROR
, instead
Before I didn’t care, so I used to prepone http://
in front of the domain and used tls off
, so Caddy didn’t activate the SSL and it worked with the port 80 flawlessly.
Now, however, since I’m trying to host a little Telegram bot that needs https, I need that functionality.
Can someone of you help me?
What I’m trying to achieve is correct https and 80/443 ports.
Thank you!
(Sorry if I’m not clear, of course)