Skip to main content
Glama
production.env.template1.34 kB
# =========================================== # 生产环境配置模板 # =========================================== # 复制此文件为 .env.production 并填入真实的配置值 # 运行环境 NODE_ENV=production # =========================================== # 通用配置 # =========================================== # OpenAI API 密钥(必需) OPENAI_API_KEY=your_openai_api_key_here # 默认数据库连接ID DEFAULT_DATABASE=prod-mysql # 最大查询结果数 MAX_QUERY_RESULTS=200 # 是否启用缓存 ENABLE_CACHE=true # 日志级别:debug, info, warn, error LOG_LEVEL=warn # =========================================== # 生产环境数据库配置 # =========================================== # 生产 MySQL 数据库 DB_PROD_MYSQL_HOST=your.production.mysql.host DB_PROD_MYSQL_PORT=3306 DB_PROD_MYSQL_USERNAME=prod_user DB_PROD_MYSQL_PASSWORD=your_production_mysql_password DB_PROD_MYSQL_DATABASE=production # 生产 PostgreSQL 数据库 DB_PROD_POSTGRES_HOST=your.production.postgres.host DB_PROD_POSTGRES_PORT=5432 DB_PROD_POSTGRES_USERNAME=pg_user DB_PROD_POSTGRES_PASSWORD=your_production_postgres_password DB_PROD_POSTGRES_DATABASE=main # Redis 缓存数据库(可选) DB_REDIS_CACHE_HOST=your.redis.host DB_REDIS_CACHE_PORT=6379 DB_REDIS_CACHE_PASSWORD=your_redis_password DB_REDIS_CACHE_DATABASE=0

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/CH-122/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server