修复错误

This commit is contained in:
yml2213
2026-07-22 13:06:06 +08:00
parent 37635e0d64
commit 56e9f0cdb4
5 changed files with 77 additions and 41 deletions
+15 -9
View File
@@ -1,14 +1,20 @@
{
# admin off # disable admin if wanted
# 如需关闭管理接口,可取消下一行注释 / Uncomment to disable admin API
# admin off
}
skin.khhao.com {
# Reverse proxy all /api* requests to the backend service
reverse_proxy /api* backend:8080
encode gzip zstd
# Serve static files for the frontend (SPA)
file_server / {
root * /usr/share/caddy
try_files {path} {path}/index.html
}
}
# 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
}
}