171 lines
5.7 KiB
Bash
171 lines
5.7 KiB
Bash
# =============================================================================
|
|
# TrinityCore Playerbot - Environment Variables Template
|
|
# =============================================================================
|
|
# Copy this file to .env and fill in your actual values
|
|
# NEVER commit the .env file to git!
|
|
# =============================================================================
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# GitHub Integration
|
|
# -----------------------------------------------------------------------------
|
|
# Create a Personal Access Token at: https://github.com/settings/tokens
|
|
# Required scopes: repo, workflow, write:packages
|
|
GITHUB_TOKEN=ghp_your_github_personal_access_token_here
|
|
|
|
# Repository information
|
|
GITHUB_REPO_OWNER=TrinityCore
|
|
GITHUB_REPO_NAME=TrinityCore
|
|
GITHUB_BRANCH=playerbot-dev
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Database Access (Trinity MySQL Databases)
|
|
# -----------------------------------------------------------------------------
|
|
# MySQL connection for trinity-database MCP
|
|
TRINITY_DB_HOST=localhost
|
|
TRINITY_DB_PORT=3306
|
|
TRINITY_DB_USER=trinity
|
|
TRINITY_DB_PASSWORD=your_mysql_password_here
|
|
|
|
# Database names
|
|
TRINITY_DB_AUTH=trinity_auth
|
|
TRINITY_DB_CHARACTERS=trinity_characters
|
|
TRINITY_DB_WORLD=trinity_world
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# MCP Authentication
|
|
# -----------------------------------------------------------------------------
|
|
# Serena MCP authentication token (OPTIONAL - only needed for token estimation features)
|
|
# Serena works without this - it's just a "nice to have" for advanced features
|
|
# Leave empty or remove line if not using token estimation
|
|
SERENA_AUTH_TOKEN=
|
|
|
|
# Context7 API key (OPTIONAL - only if you have a paid plan)
|
|
# Context7 has a generous free tier that works without API key
|
|
CONTEXT7_API_KEY=
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# TrinityCore Paths
|
|
# -----------------------------------------------------------------------------
|
|
TRINITY_ROOT=C:\TrinityBots\TrinityCore
|
|
TRINITY_BUILD_DIR=C:\TrinityBots\TrinityCore\build
|
|
TRINITY_SERVER_DIR=C:\TrinityBots\Server
|
|
WORLDSERVER_PATH=C:\TrinityBots\Server\bin\worldserver.exe
|
|
BNETSERVER_PATH=C:\TrinityBots\Server\bin\bnetserver.exe
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Build Configuration
|
|
# -----------------------------------------------------------------------------
|
|
CMAKE_BUILD_TYPE=RelWithDebInfo
|
|
BOOST_ROOT=C:\boost_1_84_0
|
|
OPENSSL_ROOT_DIR=C:\libs\openssl
|
|
MYSQL_ROOT_DIR=C:\Program Files\MySQL\MySQL Server 8.0
|
|
|
|
# Compiler settings
|
|
MSVC_VERSION=2022
|
|
CMAKE_GENERATOR=Ninja
|
|
|
|
# Build parallelism
|
|
BUILD_PARALLEL_JOBS=8
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Notification Services (Optional)
|
|
# -----------------------------------------------------------------------------
|
|
# Email notifications via SMTP
|
|
SMTP_ENABLED=false
|
|
SMTP_SERVER=smtp.gmail.com
|
|
SMTP_PORT=587
|
|
SMTP_USE_TLS=true
|
|
SMTP_USERNAME=[email protected]
|
|
SMTP_PASSWORD=your_app_specific_password
|
|
SMTP_FROM=[email protected]
|
|
SMTP_TO=[email protected]
|
|
|
|
# Slack notifications
|
|
SLACK_ENABLED=false
|
|
SLACK_WEBHOOK_URL=https://hooks.slack.com/services/YOUR/WEBHOOK/URL
|
|
SLACK_CHANNEL=#playerbot-dev
|
|
SLACK_USERNAME=PlayerBot CI
|
|
|
|
# Discord notifications
|
|
DISCORD_ENABLED=false
|
|
DISCORD_WEBHOOK_URL=https://discord.com/api/webhooks/YOUR/WEBHOOK/URL
|
|
DISCORD_USERNAME=PlayerBot CI
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Automation Configuration
|
|
# -----------------------------------------------------------------------------
|
|
# Auto-fix behavior
|
|
AUTO_FIX_ENABLED=true
|
|
AUTO_FIX_CRITICAL=true
|
|
AUTO_FIX_HIGH=false
|
|
AUTO_FIX_MEDIUM=false
|
|
|
|
# Review frequency
|
|
DAILY_REVIEW_TIME=18:00
|
|
NIGHTLY_REVIEW_TIME=02:00
|
|
|
|
# Performance thresholds
|
|
MAX_BUILD_TIME_MINUTES=60
|
|
MAX_REVIEW_TIME_MINUTES=120
|
|
MAX_MEMORY_PER_BOT_MB=10
|
|
MAX_CPU_PER_BOT_PERCENT=0.5
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Security Configuration
|
|
# -----------------------------------------------------------------------------
|
|
# Dependency scanning
|
|
DEPENDENCY_SCAN_ENABLED=true
|
|
CVE_CHECK_ENABLED=true
|
|
CVE_MIN_SEVERITY=high
|
|
|
|
# Code scanning
|
|
SAST_ENABLED=true
|
|
SECRET_SCANNING_ENABLED=true
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Monitoring & Metrics
|
|
# -----------------------------------------------------------------------------
|
|
# Metrics collection
|
|
METRICS_ENABLED=true
|
|
METRICS_RETENTION_DAYS=90
|
|
|
|
# Performance profiling
|
|
PROFILING_ENABLED=true
|
|
PROFILING_TOOL=valgrind
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Development Settings
|
|
# -----------------------------------------------------------------------------
|
|
# Debug mode
|
|
DEBUG_MODE=false
|
|
VERBOSE_LOGGING=false
|
|
|
|
# Cache settings
|
|
CACHE_ENABLED=true
|
|
CACHE_TTL_HOURS=4
|
|
|
|
# Parallel execution
|
|
MAX_PARALLEL_AGENTS=6
|
|
AGENT_TIMEOUT_SECONDS=300
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Custom MCP Settings
|
|
# -----------------------------------------------------------------------------
|
|
# TrinityCore MCP Server
|
|
TRINITY_MCP_PORT=3000
|
|
TRINITY_MCP_HOST=localhost
|
|
|
|
# DBC/DB2 file paths
|
|
DBC_PATH=M:\Wplayerbot\data\dbc\enUS
|
|
DB2_PATH=M:\Wplayerbot\data\dbc\enUS
|
|
|
|
# GameTable (GT) file path
|
|
GT_PATH=M:\Wplayerbot\data\gt
|
|
|
|
# =============================================================================
|
|
# Notes:
|
|
# - Replace all placeholder values with your actual credentials
|
|
# - Keep this file secure and never commit to version control
|
|
# - Add .env to .gitignore if not already present
|
|
# =============================================================================
|