# TLS termination for Atlas. Caddy obtains certificates for {$ATLAS_DOMAIN} automatically
# (use "localhost" for a self-signed local certificate).
{$ATLAS_DOMAIN} {
	encode gzip
	header {
		Strict-Transport-Security "max-age=31536000; includeSubDomains"
		X-Content-Type-Options "nosniff"
		Referrer-Policy "no-referrer"
		-Server
	}
	reverse_proxy atlas:8768 {
		# Keep SSE streams open.
		flush_interval -1
	}
}
