{
	# 如需关闭管理接口，可取消下一行注释 / Uncomment to disable admin API
	# admin off
}

skin.khhao.com {
	encode gzip zstd

	# API 请求反向代理到后端服务 / Proxy API requests to backend
	handle /api* {
		reverse_proxy backend:8080
	}

	# 前端 SPA 静态文件 / Serve frontend SPA
	handle {
		root * /usr/share/caddy
		try_files {path} {path}/ /index.html
		file_server
	}
}
