Disabling TLS being mandatory

1. The problem I’m having:

I am unable to find a way to make TLS optional, not mandatory but so that its still possible.

2. Error messages and/or full log output:

not needed

3. Caddy version:

v2.0.4

4. How I installed and ran Caddy:

a. System environment:

Debian 12 on x86_64

b. Command:

caddy start

c. Service/unit/compose file:

d. My complete Caddy config:

julimiro.eu {
	root * /var/www/html
	file_server {
		hide .git
	}
}

5. Links to relevant resources:

Huh? That version doesn’t exist. Please double check your version. Did you mean v2.8.4?

I’m not sure I understand what you mean. You want to allow both HTTP and HTTPS connections? Why would you want to allow HTTP? That’s bad for user privacy.

Anyway, you just need to add a site address with http:// as a prefix to have Caddy serve the content over HTTP as well. See Caddyfile Concepts — Caddy Documentation

Please completely fill out the help topic template as per the forum rules.

1 Like