# Apex — landing page (/srv/www) + launcher downloads (/srv/launcher).
http://{$BASE_DOMAIN} {
	# Launcher downloads are a sibling mount (/srv/launcher), not nested under
	# the read-only /srv/www. handle_path strips the /launcher prefix.
	handle_path /launcher/* {
		root * /srv/launcher
		file_server browse
	}
	# Self-hosted Minecraft status JSON (mc-status service). Same-origin, so the
	# landing's ServerCard fetch needs no CORS. The <addr> in the path is
	# ignored by mc-status — it only ever pings its configured MC_STATUS_TARGET.
	handle /api/mcstatus/* {
		uri strip_prefix /api/mcstatus
		reverse_proxy mc-status:8080
	}
	handle {
		root * /srv/www
		file_server
	}
}
