deploy: 适配现有 Caddy 配置(gitea 域名路径反代 + 共享网络)
This commit is contained in:
+28
-10
@@ -1,12 +1,30 @@
|
||||
# 方式一:独立子域名(DNS 添加 sync.linyux.cn A 记录后使用)
|
||||
sync.linyux.cn {
|
||||
reverse_proxy 127.0.0.1:3780
|
||||
gitea.linyux.cn {
|
||||
handle_path /sync-api/* {
|
||||
reverse_proxy internlog-sync:3780
|
||||
}
|
||||
handle {
|
||||
reverse_proxy gitea:3000
|
||||
}
|
||||
}
|
||||
|
||||
# 方式二:复用现有域名路径(并入 gitea.linyux.cn 的站点块,不要单独建站)
|
||||
# gitea.linyux.cn {
|
||||
# handle_path /sync-api/* {
|
||||
# reverse_proxy 127.0.0.1:3780
|
||||
# }
|
||||
# # ...原有 Gitea 反代配置
|
||||
# }
|
||||
img.linyux.cn {
|
||||
reverse_proxy lsky:8089
|
||||
}
|
||||
|
||||
halo.linyux.cn, www.linyux.cn {
|
||||
root * /www
|
||||
@static {
|
||||
path /BingSiteAuth.xml
|
||||
}
|
||||
handle @static {
|
||||
root * /www
|
||||
file_server
|
||||
}
|
||||
handle {
|
||||
reverse_proxy halo:8090
|
||||
}
|
||||
}
|
||||
|
||||
umami.linyux.cn {
|
||||
reverse_proxy umami:3000
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user