Files
cms-service/.env.example
2026-02-03 10:17:52 +08:00

29 lines
727 B
Plaintext
Raw Permalink 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.

SERVICE_NAME=cms-service
LOG_LEVEL=info
LOG_TO_FILE=false
LOG_DIR=./log
LOG_FILE_NAME=cms.log
PORT=3100
DATABASE_URL=postgres://cms_service_user:cms_service_password@127.0.0.1:5432/cms_service_db
DB_MAX_CONNECTIONS=20
DB_MIN_CONNECTIONS=5
RUN_MIGRATIONS=0
IAM_BASE_URL=http://127.0.0.1:3000
IAM_JWKS_URL=
JWT_PUBLIC_KEY_PEM=
IAM_TIMEOUT_MS=2000
IAM_CACHE_TTL_SECONDS=10
IAM_STALE_IF_ERROR_SECONDS=60
IAM_CACHE_MAX_ENTRIES=50000
# SSO业务服务端回调/auth/callback用到的 IAM client 凭证
IAM_CLIENT_ID=cms
IAM_CLIENT_SECRET=please_replace_with_client_secret
# SSO回调处理完成后跳回 CMS 前端的基准地址(用于限制 next 的 open redirect
CMS_FRONT_BASE_URL=https://cms.example.com