# Reverse proxy + automatic Let's Encrypt.
# DOMAIN is interpolated from the compose environment (e.g. aitvara.lt).

{$DOMAIN} {
	encode gzip zstd
	header {
		Strict-Transport-Security "max-age=31536000; includeSubDomains"
		X-Content-Type-Options nosniff
		Referrer-Policy strict-origin-when-cross-origin
		-Server
	}
	reverse_proxy app:3000 {
		health_uri /api/health
		health_interval 15s
	}
}
