Files
mcp-auth/.env.example
T
2026-09-02 17:36:11 +08:00

29 lines
1.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.
# ============================================================
# MCP Auth 鉴权管理后台 — 环境变量示例
# 复制为 .env 后按需修改;.env 不会被 git 跟踪
# ============================================================
# ── 后端(backend/docker-compose.yml / 本地 uvicorn)──
# PostgreSQL(mcp_auth 库,先执行 scripts/seed.py 初始化)
AUTH_DB_HOST=10.100.154.100
AUTH_DB_PORT=5432
AUTH_DB_USER=postgres
AUTH_DB_PASSWORD=digiwin
AUTH_DB_NAME=mcp_auth
# 鼎捷云 IAM
IAM_BASE_URL=https://iam.digiwincloud.com.cn
IAM_APP_TOKEN=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.xxx
# IAM token 校验结果 Redis 缓存秒数
IAM_CACHE_TTL=30
# Redis(缓存 IAM 校验结果)
REDIS_HOST=10.100.154.100
REDIS_PORT=6379
REDIS_DB=0
REDIS_PASSWORD=digiwin
# 外层反向代理路径前缀(直连时留空)
ROOT_PATH=/mcp-auth-api
# ── 前端(frontend/docker-compose.yml)──
# 后端 API 地址(nginx 反代目标)
BACKEND_URL=https://mcp-auth-admin.digiwincloud.com.cn/mcp-auth-api