# Standalone mode: Caddy terminates TLS (ACME e-mail or "internal") for APP_HOST.
{
	admin off
}

# Snippets must be defined before they are imported.
(security) {
	header {
		Strict-Transport-Security "max-age=31536000; includeSubDomains"
		X-Content-Type-Options nosniff
		Referrer-Policy no-referrer
		-Server
		-Via
	}
	request_body {
		max_size 25MB
	}
}

{$APP_HOST} {
	tls {$TLS}
	encode zstd gzip
	import security
	reverse_proxy app:8000
}
