chore: .env.example 统一为本地开发配置(JWT_SECRET/AUTHELIA_URL/COOKIE_DOMAIN)
This commit is contained in:
parent
36aee38160
commit
248ccaeb66
26
.env.example
26
.env.example
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue