V2: tls off in RC1

What is the new way of specifying “tls off” like in beta stage of Caddy v2? I like to run Caddy on a QNAP NAS that has limited (and NATted) access to the internet.


    http_port 81
:81, [::]:81 {
        root * /etc/caddy/html
        tls off

returns the following error (caddy validate --config /etc/caddy/Caddyfile --adapter caddyfile):

2020/04/03 06:31:06.757 INFO    using provided configuration    {"config_file": "/etc/caddy/Caddyfile", "config_adapter": "caddyfile"}
validate: adapting config using caddyfile: parsing caddyfile tokens for 'tls': /etc/caddy/Caddyfile:6 - Error during parsing: single argument must either be 'internal' or an email address


Hi @HNRK, It’s strange that you didn’t know it because you’ve been watching this forum.

In Caddy v2, simply remove tls off. In other words, remove tls.from there.
If you set the port and there is no tls, it will try HTTP communication.


Thank you so much :smiley:. This works!

Sadly due to the pandemic I cannot actively follow the forum.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.