chore: .env.example 统一为本地开发配置(JWT_SECRET/AUTHELIA_URL/COOKIE_DOMAIN)

This commit is contained in:
gitadmin 2026-07-03 14:01:38 +08:00
parent 36aee38160
commit 248ccaeb66
1 changed files with 11 additions and 15 deletions

View File

@ -1,8 +1,8 @@
# issue-ai 环境变量(本地开发)
DATABASE_PATH=./data/issue.db
JWT_SECRET=your-secret-key-change-in-production
ADMIN_PASSWORD=admin123
JWT_SECRET=dev-jwt-secret-local
COOKIE_DOMAIN=
NODE_ENV=development
# ⚠️ 仅限本地开发环境(自签名证书),生产环境禁止设置此变量
NODE_TLS_REJECT_UNAUTHORIZED=0
# LDAP 配置
@ -10,16 +10,12 @@ LDAP_URL=ldap://localhost:3890
LDAP_BASE_DN=dc=tlyq,dc=ai
LDAP_ADMIN_DN=uid=admin,ou=people,dc=tlyq,dc=ai
# assets-ai API 配置
ASSETS_API_URL=http://localhost:6177/api
ASSETS_API_KEY=your-assets-api-key
NEXT_PUBLIC_ASSETS_URL=http://localhost:6177
# 允许调用 issue-ai API 的 Key逗号分隔支持多个由 issue-ai 管理界面生成
ALLOWED_API_KEYS=your-issue-api-key
# OIDC 配置SSO 统一认证)
AUTHELIA_URL=https://sso.tlyq.ai
# OIDC 配置
AUTHELIA_URL=http://127.0.0.1:6180
OIDC_CLIENT_ID=issue-oidc
OIDC_CLIENT_SECRET=change-me-to-hashed-secret
OIDC_REDIRECT_URI=http://localhost:6176/api/auth/callback
OIDC_CLIENT_SECRET=<见 Authelia 配置>
OIDC_REDIRECT_URI=http://127.0.0.1:6176/api/auth/callback
# 跨服务调用
ASSETS_API_URL=http://localhost:6177/api
NEXT_PUBLIC_ASSETS_URL=http://localhost:6177