Is it possible to use self signed certificates on a site that accepts both HTTP and HTTPS ?
Config above gives me error: Error: adapting config using caddyfile: server listening on [:80] is HTTP, but attempts to configure TLS connection policies
I do understand why its happening, but not sure how to circumvent it. What options do I have?
I would like to use my own certs since they are already installed in few places.
I really would like to avoid splitting my sites into HTTP and HTTPS, because I will have duplicated handlers. The reason I need HTTP at all, is few Docker containers communicating internally without SSL.
Seems like I can comment out tls directive and have Caddy issue cert when needed.
Thought there might be a way to have local certs served only when request comes via caddy:80.