Files
syops/.env.test
T
2026-05-16 10:16:03 +08:00

33 lines
1.5 KiB
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.
# =============================================================================
# Test — docker compose / deploy_compose.sh test
# Casdoor 做法 A:共用 CASDOOR_BASE_URL,独立 Application「hxops-test」
# =============================================================================
DATABASE_URL=postgresql://postgres:8je2olWwHj28fCfVTgRWmankoTQORjqyBn6iIK3dG2q10vAq@192.168.100.192:5432/hxops_testing
FLASK_APP=run.py
FLASK_ENV=test
# 是否启用 JWT 认证
AUTH_JWT_REQUIRED=true
# AUTH_LOGIN_MODE=casdoor
# 如果需要用户密码登录,修改该值为password
AUTH_LOGIN_MODE=password
AUTH_JWT_ISSUER=http://ai.well-trust.com:8870
AUTH_JWT_AUDIENCE=758be5fcba2df784fdb4
AUTH_JWT_JWKS_URL=http://192.168.100.230:8870/.well-known/jwks
# Casdoor
CASDOOR_BASE_URL=http://192.168.100.192:8870
# 与 Casdoor 里 Application「hxops-prod」(或你当前生产应用)的 Client ID 一致
CASDOOR_CLIENT_ID=758be5fcba2df784fdb4
CASDOOR_CLIENT_SECRET=522161bea5bb4f90b63f77c41dc26d223f1244ab
# 兜底 redirect_uri;实际 OAuth 以浏览器地址为准,Casdoor「hxops-prod」应用须登记例如:
# http://192.168.100.192:8881/casdoor-callback
# http://ai.well-trust.com:8881/casdoor-callback
CASDOOR_REDIRECT_URI=http://192.168.100.192:8881/casdoor-callback
CASDOOR_SCOPE=openid profile email
# Casdoor Providers → wecom:Name 字段(截图即为 wecom);Organization=organization_HX,Sub type=Internal,Scope=snsapi_userinfo
CASDOOR_WECOM_PROVIDER_HINT=wecom