Hacker News new | ask | show | jobs
by throwaway483284 2241 days ago
I've started using caddy 2 couple of days ago, I am using Caddyfile because json based configuration looks really awful and is hard to maintain (quick changes take a lot of time). The only problem I've encountered is that you can't turn off TLS for a route using Caddyfile. Why is that?
1 comments

You definitely can, just prepend your site address with http:// or use port :80 (the HTTP port).

More info:

- https://caddyserver.com/docs/caddyfile/concepts#addresses

- https://caddyserver.com/docs/automatic-https#overview