# Caddy gets and renews the HTTPS certificate by itself (Let's Encrypt). It needs:
# DNS for {$DOMAIN} pointing at this server, and ports 80 and 443 open.
{
	email {$ACME_EMAIL}
}

{$DOMAIN} {
	encode zstd gzip
	request_body {
		max_size 1MB
	}
	header {
		-Server
	}
	reverse_proxy {$UPSTREAM:sentrix:3000} {
		health_uri /health
		health_interval 30s
	}
}
