Upgrade Alias-Agent to 0.2.0 --------- Co-authored-by: ZiTao-Li <zitao.l@alibaba-inc.com> Co-authored-by: xieyxclack <yuexiang.xyx@alibaba-inc.com> Co-authored-by: Zexi Li <tomleeze@qq.com> Co-authored-by: SSSuperDan <dlaura2218@gmail.com> Co-authored-by: lalaliat <78087788+lalaliat@users.noreply.github.com> Co-authored-by: jinli.yl <jinli.yl@alibaba-inc.com> Co-authored-by: Dengjiaji <dengjiaji.djj@alibaba-inc.com> Co-authored-by: 于南 <zengtianjing.ztj@alibaba-inc.com> Co-authored-by: JustinDing <166603159+sleepy-bird-world@users.noreply.github.com> Co-authored-by: y1y5 <269557841@qq.com> Co-authored-by: 柳佚 <yly287738@alibaba-inc.com> Co-authored-by: LiangguiWeng <347185100@qq.com> Co-authored-by: 潜星 <zhijian.mzj@alibaba-inc.com> Co-authored-by: StCarmen <1106135234@qq.com> Co-authored-by: LuYi <yilu_2000@outlook.com> Co-authored-by: 刺葳 <ciwei.cy@alibaba-inc.com>
125 lines
3.8 KiB
Plaintext
125 lines
3.8 KiB
Plaintext
# =============================================================================
|
|
# alias Configuration File
|
|
# =============================================================================
|
|
# This file contains all configuration options for the alias application.
|
|
# Copy this file to .env and modify the values according to your environment.
|
|
#
|
|
# Configuration is organized by importance:
|
|
# 1. Core System Configuration (Critical - Must be configured)
|
|
# 2. Core Features Configuration (Essential - Required for main functionality)
|
|
# 3. Feature-Specific Configuration (Important - Required for specific features)
|
|
# 4. Advanced Configuration (Optional - Performance tuning and monitoring)
|
|
# =============================================================================
|
|
|
|
# =============================================================================
|
|
# 1. CORE SYSTEM CONFIGURATION (Critical - Must be configured)
|
|
# =============================================================================
|
|
|
|
# Application Identity
|
|
PROJECT_NAME="Alias"
|
|
VERSION=0.0.1
|
|
ENVIRONMENT=local
|
|
|
|
# Security Configuration (Critical for authentication and API security)
|
|
SECRET_KEY=alias
|
|
API_V1_STR=/api/v1
|
|
INNER_API_KEY=
|
|
ALGORITHM=HS256
|
|
ACCESS_TOKEN_EXPIRE_MINUTES=11520
|
|
|
|
# Server Configuration (Core server settings)
|
|
FRONTEND_URL=http://localhost:3000
|
|
BACKEND_URL=http://localhost:8000
|
|
USER_PROFILING_BASE_URL=
|
|
|
|
# Database Configuration (Essential for data persistence)
|
|
USE_POSTGRESQL=false
|
|
DB_HOST="localhost"
|
|
DB_PORT=5432
|
|
DB_USER="alias"
|
|
DB_PASSWORD="alias"
|
|
DB_NAME="alias"
|
|
|
|
# User Configuration (Initial superuser setup)
|
|
FIRST_SUPERUSER_EMAIL=alias@agentscope.com
|
|
FIRST_SUPERUSER_USERNAME=alias
|
|
FIRST_SUPERUSER_PASSWORD=alias
|
|
|
|
# Storage Configuration (File storage settings)
|
|
STORAGE_TYPE=local
|
|
LOCAL_STORAGE_DIR=
|
|
|
|
# =============================================================================
|
|
# 2. CORE FEATURES CONFIGURATION (Essential - Required for main functionality)
|
|
# =============================================================================
|
|
|
|
# Redis Configuration (Essential for caching and session management)
|
|
REDIS_ENABLED=true
|
|
REDIS_HOST=localhost
|
|
REDIS_PORT=6379
|
|
REDIS_DB=0
|
|
REDIS_USERNAME=
|
|
REDIS_PASSWORD=
|
|
|
|
# Sandbox Configuration (Core sandbox functionality)
|
|
SANDBOX_PUBLIC_HOST=localhost
|
|
SANDBOX_PORT=8001
|
|
SANDBOX_TYPE=alias
|
|
SANDBOX_BEARER_TOKEN=
|
|
SANDBOX_URL=
|
|
|
|
# Sandbox Environment Variables
|
|
HOST=localhost
|
|
PORT=${SANDBOX_PORT}
|
|
DEFAULT_SANDBOX_TYPE=${SANDBOX_TYPE}
|
|
WORKDIR=/workspace
|
|
POOL_SIZE=5
|
|
AUTO_CLEANUP=false
|
|
CONTAINER_PREFIX_KEY=alias_container_
|
|
CONTAINER_DEPLOYMENT=docker
|
|
DEFAULT_MOUNT_DIR=
|
|
PORT_RANGE=[49152,59152]
|
|
BEARER_TOKEN=${SANDBOX_BEARER_TOKEN}
|
|
FILE_SYSTEM=local
|
|
|
|
|
|
# =============================================================================
|
|
# 3. FEATURE-SPECIFIC CONFIGURATION (Important - Required for specific features)
|
|
# =============================================================================
|
|
|
|
# Logging Configuration (Application logging)
|
|
LOG_FILE=./logs/app.log
|
|
LOG_FORMAT=
|
|
LOG_LEVEL=INFO
|
|
LOG_ROTATION=500 MB
|
|
LOG_RETENTION=10
|
|
|
|
|
|
# =============================================================================
|
|
# 4. ADVANCED CONFIGURATION (Optional - Performance tuning and monitoring)
|
|
# =============================================================================
|
|
|
|
# Database Pool Configuration (Performance tuning)
|
|
DB_POOL_SIZE=30
|
|
DB_MAX_OVERFLOW=30
|
|
DB_POOL_TIMEOUT=30
|
|
DB_POOL_RECYCLE=3600
|
|
DB_POOL_PRE_PING=true
|
|
DB_ECHO=false
|
|
|
|
# Alibaba Cloud OSS Configuration (Cloud storage)
|
|
OSS_ACCESS_KEY_ID=
|
|
OSS_ACCESS_KEY_SECRET=
|
|
OSS_ENDPOINT=
|
|
OSS_BUCKET_NAME=
|
|
|
|
|
|
# =============================================================================
|
|
# AGENT CONFIGURATION (Agent-specific settings)
|
|
# =============================================================================
|
|
|
|
# Agent Execution Settings
|
|
HEARTBEAT_INTERVAL=10
|
|
MAX_CHAT_EXECUTION_TIME=3600 # 1 hour
|
|
ENABLE_BACKGROUND_CHAT=true
|