# ==============================================
# AZEROTHCORE TOOLS ENVIRONMENT CONFIGURATION
# ==============================================
# Configuration for web interfaces and monitoring tools
# This connects to the core AzerothCore database

# ==============================================
# TOOL STORAGE PATHS 
# ==============================================
# Storage root path - local: ./storage, production: /nfs/azerothcore or custom mount
STORAGE_ROOT=/nfs/azerothcore
# Storage for tools (unified with core stack)
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}

# ==============================================
# DATABASE CONNECTION 
# ==============================================
# Connect to core AzerothCore database
MYSQL_ROOT_PASSWORD=azerothcore123

# Database connection for tools (connects to core stack)
# Connect directly to ac-mysql container on azerothcore network
MYSQL_HOST=ac-mysql
MYSQL_PORT=3306

# ==============================================
# NETWORK CONFIGURATION 
# ==============================================
TOOLS_NETWORK_NAME=azerothcore-tools
TOOLS_NETWORK_SUBNET=172.21.0.0/16
TOOLS_NETWORK_GATEWAY=172.21.0.1

# ==============================================
# WEB INTERFACE PORTS 
# ==============================================
# PHPMyAdmin settings
PMA_HOST=ac-mysql
PMA_PORT=3306
PMA_USER=root
PMA_EXTERNAL_PORT=8081
PMA_ARBITRARY=1
PMA_ABSOLUTE_URI=
PMA_UPLOAD_LIMIT=300M
PMA_MEMORY_LIMIT=512M
PMA_MAX_EXECUTION_TIME=600

# Keira3 Database Editor settings
KEIRA3_EXTERNAL_PORT=4201
KEIRA_DATABASE_HOST=ac-mysql
KEIRA_DATABASE_PORT=3306

# ==============================================
# DOCKER IMAGES
# ==============================================
# mod-playerbots compatible tools container
AC_TOOLS_IMAGE_DISABLED=uprightbass360/azerothcore-wotlk-playerbots:tools-Playerbot
AC_TOOLS_IMAGE=acore/ac-wotlk-tools:latest

# ==============================================
# DEPLOYMENT CONFIGURATION
# ==============================================
# Use separate storage for tools
USE_NAMED_VOLUMES=false

# ==============================================
# END OF TOOLS CONFIGURATION
# ==============================================