R24-1 R24-2: 补齐同机部署脚本与 Nginx 配置
这个提交包含在:
@@ -4,10 +4,17 @@
|
||||
## cp deploy/trialrun/.env.example deploy/trialrun/.env
|
||||
## 然后按需修改 deploy/trialrun/.env 中的值(不要提交 .env)
|
||||
##
|
||||
## 同机公网部署建议:
|
||||
## - 官网继续使用 hyinda.com / www.hyinda.com
|
||||
## - OA 单独使用 oa.example.com 一类二级域名
|
||||
## - 正式公网环境请保持 APP_ORIGIN=https://oa.example.com
|
||||
## - 正式公网环境请保持 COOKIE_SECURE=true
|
||||
## - 若仅做本机临时演练,再改回 http://127.0.0.1:3000 和 COOKIE_SECURE=false
|
||||
##
|
||||
|
||||
# ===== 基础域名(用于 refresh cookie 的 origin 校验)=====
|
||||
# 单域托管模式下,前端与后端同域访问(建议生产/试运行)。
|
||||
APP_ORIGIN="http://127.0.0.1:3000"
|
||||
APP_ORIGIN="https://oa.example.com"
|
||||
|
||||
# ===== 服务端密钥(必须修改)=====
|
||||
JWT_SECRET="change_me_in_trialrun"
|
||||
@@ -68,7 +75,7 @@ HOST="0.0.0.0"
|
||||
PORT="3000"
|
||||
|
||||
# ===== Cookie 安全(HTTPS 反代时建议 true)=====
|
||||
COOKIE_SECURE="false"
|
||||
COOKIE_SECURE="true"
|
||||
|
||||
# ===== Metrics(Prometheus)=====
|
||||
METRICS_ENABLED="true"
|
||||
|
||||
在新工单中引用
屏蔽一个用户