{
	# No public or container-network administration API.
	admin off
}

# Only the purchased apex is a public application host. No catch-all host mapping.
roadtorelief.co {
	encode zstd gzip
	reverse_proxy app:3000 {
		# This is the FIRST public proxy, without a CDN. Replace, never append,
		# arbitrary forwarded headers supplied by a visitor.
		header_up Host roadtorelief.co
		header_up X-Forwarded-Host roadtorelief.co
		header_up X-Forwarded-Proto https
		header_up X-Forwarded-For {http.request.remote.host}
		header_up -Forwarded
	}
}

# Health endpoint is only on Caddy's own loopback; port8080 is not published.
http://127.0.0.1:8080 {
	bind 127.0.0.1
	respond /health 200
}
