# HTTPS in front of the application. FPT_TLS is either an e-mail address (public certificate from Let's Encrypt, the # domain must resolve to this host) or "internal" (a certificate from Caddy's own authority, for private networks). {$FPT_DOMAIN} { tls {$FPT_TLS} encode zstd gzip header { Strict-Transport-Security "max-age=31536000; includeSubDomains" -Server } # live run updates and the live test view are long-lived streams: do not buffer them reverse_proxy app:8800 { flush_interval -1 transport http { read_timeout 1h } } }