chore(init): 初始化解忧商行项目并完成 Phase 0 基座

This commit is contained in:
yml2213
2026-10-30 11:46:10 +08:00
commit 8d9481c251
689 changed files with 138703 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
# 由 scripts/deploy-prod.sh 根据 CADDY_SHOW_DOMAIN 生成到 conf.d/show.caddy
# 选号网静态页 + 同源 /api 反代到 hfb_jysh backend(本机 Docker 网络,非公网绕行)
__CADDY_SHOW_DOMAIN__ {
encode zstd gzip
header {
Strict-Transport-Security "max-age=31536000"
X-Content-Type-Options "nosniff"
X-Frame-Options "SAMEORIGIN"
Referrer-Policy "strict-origin-when-cross-origin"
}
# 与主站共用后端公开接口;浏览器访问选号网域名下的 /api/* 即可,无需跨域。
handle /api/* {
request_body {
max_size 11MB
}
reverse_proxy backend:8080 {
header_up X-Real-IP {remote_host}
header_up X-Forwarded-Proto {scheme}
}
}
handle /health {
reverse_proxy backend:8080 {
header_up X-Real-IP {remote_host}
header_up X-Forwarded-Proto {scheme}
}
}
handle {
root * /srv/show-dist
try_files {path} /index.html
file_server
}
}