# ==============================================
# AZEROTHCORE SERVICES ENVIRONMENT 
# ==============================================
# Environment variables for auth server, world server, client data, modules, and optional services

# ==============================================
# DEPLOYMENT CONFIGURATION 
# ==============================================
# Storage root path - local: ./storage, production: /nfs/azerothcore or custom mount
# !!Set this for your environment root!!!
STORAGE_ROOT=/nfs/azerothcore
# Storage configuration (must match database layer)
STORAGE_PATH=${STORAGE_ROOT}

# ==============================================
# USER MAPPING CONFIGURATION (for NFS compatibility)
# ==============================================
# User and group IDs for container processes (PUID/PGID pattern)
# Set these to match your NFS server's user mapping
# Default: 1001:1000 (matches 'sharing' user on most systems)
PUID=1001
PGID=1000
SHARING_USER=${PUID}:${PGID}
# Legacy compatibility
CONTAINER_USER_ID=${PUID}
CONTAINER_GROUP_ID=${PGID}
CONTAINER_USER=${CONTAINER_USER_ID}:${CONTAINER_GROUP_ID}
# GIT
GIT_EMAIL=uprightbass360@gmail.com
GIT_USERNAME=uprightbass360
GIT_PAT=REQUIRED

# ==============================================
# DATABASE CONNECTION 
# ==============================================
# Connect to database layer (must match database layer settings)
MYSQL_HOST=ac-mysql
MYSQL_PORT=3306
MYSQL_USER=root
MYSQL_ROOT_PASSWORD=azerothcore123

# Database names (must match database layer)
DB_AUTH_NAME=acore_auth
DB_WORLD_NAME=acore_world
DB_CHARACTERS_NAME=acore_characters

# ==============================================
# DOCKER IMAGES 
# ==============================================
ALPINE_IMAGE=alpine:latest

# Service images
AC_ELUNA_IMAGE=acore/eluna-ts:master
ALPINE_GIT_IMAGE=alpine/git:latest

# ==============================================
# IMAGE PULL POLICY 
# ==============================================
IMAGE_PULL_POLICY=if_not_present

# ==============================================
# CONTAINER HEALTH CHECKS 
# ==============================================
# Auth server health check
AUTH_HEALTHCHECK_INTERVAL=30s
AUTH_HEALTHCHECK_TIMEOUT=10s
AUTH_HEALTHCHECK_RETRIES=3
AUTH_HEALTHCHECK_START_PERIOD=60s

# World server health check
WORLD_HEALTHCHECK_INTERVAL=30s
WORLD_HEALTHCHECK_TIMEOUT=10s
WORLD_HEALTHCHECK_RETRIES=3
WORLD_HEALTHCHECK_START_PERIOD=120s

# ==============================================
# NETWORK CONFIGURATION 
# ==============================================
# External ports for game services
AUTH_EXTERNAL_PORT=3784
WORLD_EXTERNAL_PORT=8215
SOAP_EXTERNAL_PORT=7778

# Internal ports (container side)
AUTH_PORT=3724
WORLD_PORT=8085
SOAP_PORT=7878

# ==============================================
# CONTAINER NAMES 
# ==============================================
# Core service container names
CONTAINER_AUTHSERVER=ac-authserver
CONTAINER_WORLDSERVER=ac-worldserver
CONTAINER_CLIENT_DATA=ac-client-data

# Database container name (for external linking)
CONTAINER_MYSQL=ac-mysql

# ==============================================
# NETWORK SETTINGS 
# ==============================================
# Network must already exist from database layer
NETWORK_NAME=azerothcore

# ==============================================
# CUSTOM MODULE SETTINGS
# ==============================================
# Playerbot settings
PLAYERBOT_ENABLED=0
PLAYERBOT_MAX_BOTS=40

# Module configuration
MODULE_PLAYERBOTS=0
MODULE_AOE_LOOT=0
MODULE_LEARN_SPELLS=1
MODULE_FIREWORKS=1
MODULE_INDIVIDUAL_PROGRESSION=0

# Quality of Life Modules
MODULE_AHBOT=1
MODULE_AUTOBALANCE=1
MODULE_TRANSMOG=1
MODULE_NPC_BUFFER=1

# Gameplay Enhancement Modules
MODULE_DYNAMIC_XP=0
MODULE_SOLO_LFG=1
MODULE_1V1_ARENA=0
MODULE_PHASED_DUELS=0

# Server Management Modules
MODULE_BREAKING_NEWS=0
MODULE_BOSS_ANNOUNCER=0
MODULE_ACCOUNT_ACHIEVEMENTS=0

# Additional Modules Found in Config
MODULE_AUTO_REVIVE=0
MODULE_GAIN_HONOR_GUARD=0
MODULE_ELUNA=0
MODULE_TIME_IS_TIME=0
MODULE_POCKET_PORTAL=0
MODULE_RANDOM_ENCHANTS=0
MODULE_SOLOCRAFT=1
MODULE_PVP_TITLES=0
MODULE_NPC_BEASTMASTER=0
MODULE_NPC_ENCHANTER=0
MODULE_INSTANCE_RESET=0
MODULE_LEVEL_GRANT=0

# ==============================================
# ADDITIONAL CONTAINER NAMES 
# ==============================================
# Optional service container names
CONTAINER_ELUNA=ac-eluna
CONTAINER_MODULES=ac-modules

# ==============================================
# DOCKER IMAGES 
# ==============================================
# Optional service images
AC_ELUNA_IMAGE=acore/eluna-ts:master
ALPINE_GIT_IMAGE=alpine/git:latest

# ==============================================
# IMAGE PULL POLICY 
# ==============================================
IMAGE_PULL_POLICY=if_not_present

# ==============================================
# CONTAINER NAMES 
# ==============================================
# Optional service container names

# Reference to core services (for external linking)
CONTAINER_WORLDSERVER=ac-worldserver

