Files
liandong-crm/.env.example
T
luishouandClaude ce41f35f28 fix(auth): 退出登录避免跳转到 0.0.0.0
signOut 改用 redirect:false 后由浏览器同源跳转 /login,并明确生产 AUTH_URL 不得写成监听地址 0.0.0.0。

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-13 16:21:17 +08:00

13 lines
547 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 腾讯云自建 MySQL(Prisma 直连)
DATABASE_URL="mysql://crm_dev:PASSWORD@124.223.187.95:3306/crm_dev"
# Auth.js 会话加密密钥:openssl rand -base64 32
AUTH_SECRET="please-run-openssl-rand-base64-32"
# 开发环境不需要 AUTH_URL(trustHost:true 自动识别 host/端口)。
# 生产必须设为浏览器可访问的地址(真实域名或公网 IP),
# 切勿写成监听地址 0.0.0.0,否则登录/退出会跳到 http://0.0.0.0:端口
# AUTH_URL="https://crm.yourdomain.com"
# AUTH_URL="http://124.223.187.95:3100"