iconsulting/.env.example

172 lines
5.3 KiB
Plaintext
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.

# ===========================================
# iConsulting - Environment Configuration
# ===========================================
# 使用方法: 复制此文件为 .env 并填入实际值
# cp .env.example .env
# ===========================================
# Application
NODE_ENV=production
APP_NAME=iConsulting
# ===========================================
# 域名配置
# ===========================================
DOMAIN=iconsulting.szaiai.com
ADMIN_EMAIL=admin@szaiai.com
# ===========================================
# 服务器网络配置
# ===========================================
# 对外服务 IP (用户访问)
SERVER_PUBLIC_IP=14.215.128.96
# Claude API 出口 IP
CLAUDE_API_OUTBOUND_IP=154.84.135.121
# Claude API 服务器
CLAUDE_API_SERVER=67.223.119.33
# ===========================================
# Anthropic Claude API
# ===========================================
ANTHROPIC_API_KEY=sk-ant-api03-xxx
ANTHROPIC_BASE_URL=https://api.anthropic.com
# ===========================================
# OpenAI API (用于 Embedding)
# ===========================================
OPENAI_API_KEY=sk-xxx
# ===========================================
# PostgreSQL Database
# ===========================================
POSTGRES_HOST=localhost
POSTGRES_PORT=5432
POSTGRES_USER=postgres
POSTGRES_PASSWORD=your_secure_password
POSTGRES_DB=iconsulting
DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}
# ===========================================
# Neo4j Graph Database
# ===========================================
NEO4J_URI=bolt://localhost:7687
NEO4J_USER=neo4j
NEO4J_PASSWORD=your_secure_password
# ===========================================
# Redis Cache
# ===========================================
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=your_redis_password
REDIS_URL=redis://:${REDIS_PASSWORD}@${REDIS_HOST}:${REDIS_PORT}
# ===========================================
# Payment - Alipay
# ===========================================
ALIPAY_APP_ID=your_app_id
ALIPAY_PRIVATE_KEY=your_private_key
ALIPAY_PUBLIC_KEY=alipay_public_key
ALIPAY_GATEWAY=https://openapi.alipay.com/gateway.do
ALIPAY_NOTIFY_URL=https://your-domain.com/api/v1/payments/alipay/notify
# ===========================================
# Payment - WeChat Pay
# ===========================================
WECHAT_APP_ID=your_app_id
WECHAT_MCH_ID=your_merchant_id
WECHAT_API_KEY=your_api_key
WECHAT_CERT_PATH=/path/to/wechat/cert
WECHAT_NOTIFY_URL=https://your-domain.com/api/v1/payments/wechat/notify
# ===========================================
# Payment - Stripe (Credit Card)
# ===========================================
STRIPE_SECRET_KEY=sk_test_xxx
STRIPE_PUBLISHABLE_KEY=pk_test_xxx
STRIPE_WEBHOOK_SECRET=whsec_xxx
# ===========================================
# Payment Callback URLs
# ===========================================
PAYMENT_CALLBACK_BASE_URL=https://your-domain.com
PAYMENT_SUCCESS_REDIRECT_URL=https://your-domain.com/payment/success
PAYMENT_CANCEL_REDIRECT_URL=https://your-domain.com/payment/cancel
# ===========================================
# JWT Authentication
# ===========================================
JWT_SECRET=your_super_secret_jwt_key_change_in_production
JWT_EXPIRES_IN=7d
JWT_REFRESH_EXPIRES_IN=30d
# ===========================================
# SMS Service (for phone verification)
# ===========================================
SMS_PROVIDER=aliyun
ALIYUN_SMS_ACCESS_KEY_ID=your_access_key_id
ALIYUN_SMS_ACCESS_KEY_SECRET=your_access_key_secret
ALIYUN_SMS_SIGN_NAME=iConsulting
ALIYUN_SMS_TEMPLATE_CODE=SMS_xxx
# ===========================================
# Service Ports
# ===========================================
USER_SERVICE_PORT=3001
PAYMENT_SERVICE_PORT=3002
KNOWLEDGE_SERVICE_PORT=3003
CONVERSATION_SERVICE_PORT=3004
EVOLUTION_SERVICE_PORT=3005
# ===========================================
# 服务间通信 URL
# ===========================================
USER_SERVICE_URL=http://localhost:3001
PAYMENT_SERVICE_URL=http://localhost:3002
KNOWLEDGE_SERVICE_URL=http://localhost:3003
CONVERSATION_SERVICE_URL=http://localhost:3004
EVOLUTION_SERVICE_URL=http://localhost:3005
# ===========================================
# Kong API Gateway
# ===========================================
KONG_PROXY_PORT=8000
KONG_ADMIN_PORT=8001
# ===========================================
# Frontend URLs
# ===========================================
WEB_CLIENT_URL=http://localhost
ADMIN_CLIENT_URL=http://localhost/admin
# ===========================================
# CORS
# ===========================================
CORS_ORIGINS=http://localhost,http://14.215.128.96
# ===========================================
# Rate Limiting
# ===========================================
RATE_LIMIT_TTL=60
RATE_LIMIT_MAX=100
# ===========================================
# Logging
# ===========================================
LOG_LEVEL=info
LOG_FORMAT=json
# ===========================================
# Real-time Tools API Keys (可选)
# ===========================================
# Google Custom Search API
# 注册地址: https://developers.google.com/custom-search/v1/overview
# 免费额度: 100次/天,超出后 $5/1000次
GOOGLE_SEARCH_API_KEY=
GOOGLE_CSE_ID=
# Exchange Rate API (可选v4 API 免费无需配置)
# 注册地址: https://www.exchangerate-api.com/
# 免费版无需 KeyPremium 版需要
EXCHANGE_RATE_API_KEY=