Files
syops/.env.prod
T
2026-05-26 18:47:22 +08:00

47 lines
2.0 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.
# =============================================================================
# Production — docker compose env_file + deploy_compose.sh prod
# Environment-specific variables stay in .env.dev/.env.test/.env.prod
# - .env.dev / .env.test / .env.prod for deployment environments
# =============================================================================
ENV_NAME=prod
FLASK_ENV=production
DATABASE_URL=postgresql://postgres:difyai123456@192.168.100.230:5432/hxops_db
ORACLE_CLIENT_MOUNT_DIR=/data/ai-platform/hxops/oracle_client
ORACLE_CLIENT_LIB_DIR=/app/oracle_client/instantclient_19_31
LD_LIBRARY_PATH=/app/oracle_client/instantclient_19_31:/app/oracle_client
# 是否启用 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.230: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.230:8881/casdoor-callback
# http://ai.well-trust.com:8881/casdoor-callback
CASDOOR_REDIRECT_URI=http://192.168.100.230: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
# 知识库 Dify 对接
PUBLIC_BASE_URL=http://192.168.100.230:8891
DIFY_API_BASE=http://192.168.100.230:8882/v1
DIFY_API_KEY=dataset-7xxs1P1QnqBmkEAjGhXLjmwF
DEFAULT_ADMIN_USERNAME=admin
DEFAULT_ADMIN_PASSWORD=admin123456
TASK_EXECUTION_MODE=rq
# Gunicorn配置
GUNICORN_WORKERS=20