初始化
This commit is contained in:
@@ -0,0 +1,89 @@
|
||||
# =============================================================================
|
||||
# Environment Variables Template
|
||||
# =============================================================================
|
||||
# Copy to .env and fill in values
|
||||
# NEVER commit actual secrets to git
|
||||
# =============================================================================
|
||||
|
||||
# ---- Application ----
|
||||
APP_NAME="Enterprise Digital Platform"
|
||||
APP_ENV=development
|
||||
APP_DEBUG=true
|
||||
APP_URL=http://localhost:9501
|
||||
|
||||
# ---- Frontend (Vite) ----
|
||||
VITE_PORT=8200
|
||||
VITE_BASE_URL=/
|
||||
VITE_API_URL=http://localhost:9501
|
||||
VITE_WS_URL=ws://localhost:9502
|
||||
VITE_DROP_CONSOLE=false
|
||||
|
||||
# ---- Database (MySQL) ----
|
||||
DB_DRIVER=mysql
|
||||
DB_HOST=localhost
|
||||
DB_PORT=3306
|
||||
DB_DATABASE=enterprise_platform
|
||||
DB_USERNAME=root
|
||||
DB_PASSWORD=your_db_password
|
||||
DB_CHARSET=utf8mb4
|
||||
DB_COLLATION=utf8mb4_unicode_ci
|
||||
DB_PREFIX=
|
||||
DB_ROOT_PASSWORD=your_root_password
|
||||
|
||||
# Database Pool (Swoole)
|
||||
DB_POOL_MIN=5
|
||||
DB_POOL_MAX=50
|
||||
|
||||
# Read-Write Separation (optional, production)
|
||||
# DB_READ_HOST_1=read1.example.com
|
||||
# DB_READ_HOST_2=read2.example.com
|
||||
# DB_WRITE_HOST=write.example.com
|
||||
|
||||
# ---- Redis ----
|
||||
REDIS_HOST=localhost
|
||||
REDIS_PORT=6379
|
||||
REDIS_AUTH=your_redis_password
|
||||
REDIS_DB=0
|
||||
REDIS_CACHE_DB=1
|
||||
|
||||
# ---- JWT ----
|
||||
JWT_SECRET=generate-with-openssl-rand-base64-64
|
||||
|
||||
# ---- WebSocket ----
|
||||
WEBSOCKET_PORT=9502
|
||||
SERVER_ID=server-1
|
||||
|
||||
# ---- Swoole ----
|
||||
SWOOLE_WORKER_NUM=4
|
||||
SWOOLE_TASK_WORKER_NUM=4
|
||||
SWOOLE_MAX_COROUTINE=100000
|
||||
|
||||
# ---- Queue ----
|
||||
QUEUE_CHANNEL={queue}
|
||||
|
||||
# ---- File Storage ----
|
||||
FILESYSTEM_DRIVER=local
|
||||
# AWS_ACCESS_KEY_ID=
|
||||
# AWS_SECRET_ACCESS_KEY=
|
||||
# AWS_DEFAULT_REGION=ap-east-1
|
||||
# AWS_BUCKET=
|
||||
|
||||
# ---- WeChat Work (optional) ----
|
||||
# WECOM_CORP_ID=your_corp_id
|
||||
# WECOM_SECRET=your_secret
|
||||
# WECOM_AGENT_ID=your_agent_id
|
||||
|
||||
# ---- SMS (optional) ----
|
||||
# SMS_DRIVER=easysms
|
||||
# SMS_ACCESS_KEY=
|
||||
# SMS_ACCESS_SECRET=
|
||||
|
||||
# ---- MCP Server Tokens (for .cursor/mcp.json) ----
|
||||
GITHUB_TOKEN=""
|
||||
BRAVE_API_KEY=""
|
||||
FIGMA_API_KEY=""
|
||||
SUPABASE_ACCESS_TOKEN=""
|
||||
LINEAR_API_KEY=""
|
||||
SENTRY_AUTH_TOKEN=""
|
||||
SLACK_BOT_TOKEN=""
|
||||
SLACK_TEAM_ID=""
|
||||
Reference in New Issue
Block a user