File size: 551 Bytes
af1bee9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | # 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
}
}
}
|