@@ -6,6 +6,13 @@
skin.khhao.com {
encode gzip zstd
# /api-debug 是前端 SPA 路由,不要代理到后端
handle /api-debug* {
root * /usr/share/caddy
try_files {path} {path}/ /index.html
file_server
}
# API 请求反向代理到后端服务 / Proxy API requests to backend
handle /api* {
reverse_proxy backend:8080
The note is not visible to the blocked user.