:3080 {
	encode

	handle /api/* {
		respond 404
	}

	handle {
		redir /blobs/* /api{uri} permanent # TODO remove this line after the transition to the /api prefix has concluded
		redir /auth/* /api{uri} permanent # TODO remove this line after the transition to the /api prefix has concluded

		root * /srv

		route {
			try_files {path} /index.html
			header /index.html Cache-Control "public, max-age=0, must-revalidate"
		}

		file_server
	}
}
