caddyfile: When using non-standard port catch-all site with tls
directive, should use TLS
#5747
Labels
bug 🐞
Something isn't working
discussion 💬
The right solution needs to be found
help wanted 🆘
Extra attention is needed
Milestone
Currently, this doesn't work:
Instead, we need to do this:
This is not intuitive. Using the
tls
directive should make the site address have TLS enabled without having to specifyhttps://
.The rule as I understand it right now is if there's a domain with a non-standard port, it'll enable TLS, but if there's no domain then it uses HTTP. But it should also use TLS if the
tls
directive is specified.The key difference can be seen with
caddy adapt --pretty
, withouthttps://
, there's notls_connection_policies
for the server. It should have at least an empty connection policy whentls
is used.The text was updated successfully, but these errors were encountered: