修复错误
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user