支持同机双域名部署选号网hfb_show

Caddy按CADDY_SHOW_DOMAIN托管选号网静态并反代API;一键脚本可构建hfb_show并写入配置。
This commit is contained in:
yml2213
2026-07-16 22:24:40 +08:00
parent a4189db4ca
commit a0fc23647b
12 changed files with 267 additions and 38 deletions
View File
+32
View File
@@ -0,0 +1,32 @@
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8" />
<title>选号网未构建</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style>
body {
font-family: system-ui, sans-serif;
max-width: 40rem;
margin: 4rem auto;
padding: 0 1rem;
color: #17233d;
line-height: 1.6;
}
code {
background: #f1f5f9;
padding: 0.1em 0.35em;
border-radius: 4px;
}
</style>
</head>
<body>
<h1>选号网静态资源尚未构建</h1>
<p>
请配置 <code>CADDY_SHOW_DOMAIN</code><code>HFB_SHOW_DIR</code> 后重新执行
<code>./scripts/deploy-prod.sh</code>,或手动构建
<code>hfb_show</code> 并将 <code>dist/</code> 复制到
<code>deploy/caddy/show-dist/</code>
</p>
</body>
</html>