feat: 生产部署接入 TAC 验证码(JWT_SECRET + WireGuard upstream + 反代健康检查)
This commit is contained in:
1 parent
7182e46ee4
commit
c05339e21c
3 files changed
+25
-4
No files matched your search
@@ -17,8 +17,13 @@ upstream backend {
|
||||
}
|
||||
|
||||
upstream captcha-platform {
|
||||
# tianai-captcha 自托管平台(prod1),安全组仅放行本服务器 IP
|
||||
server 38.76.218.110:18200;
|
||||
# tianai-captcha 自托管平台(prod1)。
|
||||
# 值由环境变量 CAPTCHA_UPSTREAM 注入(Dockerfile 给默认值,生产 deploy-prod.yml
|
||||
# 覆盖为 WireGuard IP 10.9.0.2:18200——prod2 公网到 prod1:18200 被安全组拦截)。
|
||||
# 本文件作为 /etc/nginx/templates/default.conf.template 挂载,由 nginx 镜像入口的
|
||||
# envsubst 渲染;envsubst 只替换「已定义的环境变量」,$host/$remote_addr 等
|
||||
# nginx 内置变量不受影响。
|
||||
server ${CAPTCHA_UPSTREAM};
|
||||
}
|
||||
|
||||
server {
|
||||
|
||||
Reference in new issue
Block a user