So, I use ZeroTier, and I want to setup a website that will only work when accessed via the ZeroTier network. I have DNS entries pointing to the ZeroTier IP (dig linux.netbros.net).
I setup a Caddyfile to handle the hostname, but I get:
404 Site linux.netbros.net is not served on this interface
Activating privacy features... done.
http://linux.netbros.net:2015
WARNING: File descriptor limit 1024 is too low for production servers. At least 8192 is recommended. Fix with "ulimit -n 8192".
You’ve disabled Automatic HTTPS (with tls off). The default port Caddy uses is port 2015.
When I want to specify a HTTP-only site in Caddy, I generally avoid using tls off and instead specify the scheme in the site label, i.e. http://linux.netbros.net.