1. Caddy version (caddy version
):
Tried on 2.0.0, 2.1.1, 2.2.0
2. How I run Caddy:
a. System environment:
Mac OS Catalina version 10.15.4
b. Command:
caddy run
c. Service/unit/compose file:
paste full file contents here
d. My complete Caddyfile or JSON config:
https:// {
tls {
on_demand
}
route /monopiny/media/* {
root * /statics
file_server
}
route /* {
reverse_proxy {
to 127.0.0.1:3000
header_up Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0"
header_up Host {http.request.host}
header_up X-Real-IP {http.request.remote}
header_up X-Forwarded-For {http.request.remote}
header_up X-Forwarded-Port {http.request.port}
header_up X-Forwarded-Proto {http.request.scheme}
}
}
}
3. The problem Iām having:
I am trying to use the ācatch all domainsā as my website allows users to use their custom domain, and they need automatic certificates, but it does catch all the domain as you can see on the config file, but it doesnāt create a SSL. If I specify a domain name on the config file instead of just https:// or :443, it works, but when you do it like the config the error raises:
2020/09/04 23:29:53 http: TLS handshake error from 61.84.210.178:57673: no server TLS configuration available for ClientHello: &{CipherSuites:[6682 4865 4866 4867 49195 49199 49196 49200 52393 52392 49171 49172 156 157 47 53 10] ServerName:monopiny.net SupportedCurves:[10794 29 23 24] SupportedPoints:[0] SignatureSchemes:[1027 2052 1025 1283 2053 1281 2054 1537 513] SupportedProtos:[h2 http/1.1] SupportedVersions:[64250 772 771 770 769] Conn:0xc00069a230 config:0xc000602780}
Iāve seen on some threads on this community that this issue was fixed on the latest version of Caddy, but I tried on three different versions of Caddy, but it happens the same. I donāt know what I am missing as I am not accustomed to Go & Caddy. It doesnāt seem to be clear about this on any posts Iāve found on Google.
4. Error messages and/or full log output:
2020/09/04 23:29:53 http: TLS handshake error from 61.84.210.178:57673: no server TLS configuration available for ClientHello: &{CipherSuites:[6682 4865 4866 4867 49195 49199 49196 49200 52393 52392 49171 49172 156 157 47 53 10] ServerName:monopiny.net SupportedCurves:[10794 29 23 24] SupportedPoints:[0] SignatureSchemes:[1027 2052 1025 1283 2053 1281 2054 1537 513] SupportedProtos:[h2 http/1.1] SupportedVersions:[64250 772 771 770 769] Conn:0xc00069a230 config:0xc000602780}
5. What I already tried:
- I tried on multiple versions of Caddy: 2.0.0, 2.1.1, 2.2.0