's'
This commit is contained in:
13
live-platform/config/templates/Caddyfile.sample
Normal file
13
live-platform/config/templates/Caddyfile.sample
Normal file
@@ -0,0 +1,13 @@
|
||||
# 将本文件复制到 /opt/live/templates/Caddyfile 并按实际路径修改
|
||||
# 目标:http://live.local → 静态控制台 + /api/* → FastAPI
|
||||
|
||||
{$LIVE_DOMAIN:live.local} {
|
||||
encode gzip
|
||||
# 静态(Next export 由 web.py 同端口托管时可改为 reverse_proxy)
|
||||
handle_path /api/* {
|
||||
reverse_proxy 127.0.0.1:8001
|
||||
}
|
||||
handle {
|
||||
reverse_proxy 127.0.0.1:8001
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user