feat: Nginx 反代配置、证书与 server/.env.example(证书日后可删或改由服务器单独放)

Made-with: Cursor
This commit is contained in:
whm
2026-03-17 17:27:25 +08:00
parent 022a71dfd3
commit 16a77ab3c8
4 changed files with 195 additions and 6 deletions

View File

@@ -1,9 +1,9 @@
# 复制为 .env 或 .env.production 后修改
# Go 不会自动加载 .env需在启动前导出变量见项目根目录 .env.example 的说明
# 复制为 .env 后按需修改(一键脚本会在缺失时自动复制)
# Docker 部署时 MONGODB_URI 使用 mongo:27017compose 服务名
MONGODB_URI=mongodb://localhost:27017
MONGODB_URI=mongodb://mongo:27017
MONGODB_DB=yxd-agent-testing
PORT=8080
PORT=9527
GIN_MODE=release
# CORS 允许的来源:对外域名 + 开发时前端地址(多个用逗号分隔)
ALLOWED_ORIGINS=https://yuheng.yuxindazhineng.com,http://localhost:3000,http://localhost:3001
# 对外域名CORS、日志与 nginx 反代域名一致
ALLOWED_ORIGINS=https://yuheng.yuxindazhineng.com