# Caddy in front of the core: TLS from Let's Encrypt, then everything to # the core on localhost, except /metrics, which stays private. # # sudo apt install caddy # sudo cp deploy/caddy/Caddyfile /etc/caddy/Caddyfile # set your domain # sudo systemctl reload caddy # # Caddy has no request body limit and no read timeout by default, which # suits worker uploads and the long-held claim requests of workers. bot.example.com { @private path /metrics respond @private 404 reverse_proxy 127.0.0.1:8080 }