# In-image Caddyfile: plain HTTP on :8080 behind the host Caddy (which terminates TLS). Same header snippets as everywhere else.
{
	admin off
	auto_https off
}

import /etc/caddy/cfp-headers.caddy

:8080 {
	handle /healthz {
		header Cache-Control "no-store"
		respond "ok" 200
	}

	handle /models/memory/* {
		root * /srv/memory-models
		import cfp_headers
		import {$CFP_CSP_SNIPPET}
		import cfp_types_and_cache
		file_server
	}

	handle {
		root * /srv/site
		import cfp_headers
		import {$CFP_CSP_SNIPPET}
		import cfp_types_and_cache
		file_server
	}
}
