Core/Configs: Use "oldstyle" configfile method - includes configfile cleanups and also restructuring it so every option is explained properly

Fix by leak. Closes issue 4913.

--HG--
branch : trunk
This commit is contained in:
click
2010-11-24 13:48:00 +01:00
parent 6fa169810b
commit 5753be3271
2 changed files with 2958 additions and 2243 deletions
+234 -169
View File
@@ -1,169 +1,234 @@
############################################### ###############################################
# Trinity Core Auth Server configuration file # # Trinity Core Auth Server configuration file #
############################################### ###############################################
[authserver] [authserver]
# Note to devs, line breaks should be at column 80 ###################################################################################################
############################################################################### # SECTION INDEX
# AUTH SERVER SETTINGS #
# # EXAMPLE CONFIG
# LogsDir # AUTH SERVER SETTINGS
# Logs directory setting. # MYSQL SETTINGS
# Important: Logs dir must exists, or all logs need to be disabled #
# Default: "" - no log directory prefix, if used log names isn't ###################################################################################################
# absolute path then logs will be stored in current directory.
# ###################################################################################################
# MaxPingTime # EXAMPLE CONFIG
# Settings for maximum database-ping interval (minutes between pings) #
# # Variable
# RealmServerPort # Description: Brief description what the variable is doing.
# Default RealmServerPort # Important: Annotation for important things about this variable.
# # Example: "Example, i.e. if the value is a string"
# BindIP # Default: 10 - (Enabled|Comment|Variable name in case of grouped config options)
# Bind Realm Server to IP/hostname # 0 - (Disabled|Comment|Variable name in case of grouped config options)
# #
# PidFile # Note to developers:
# Realmd daemon PID file # - Copy this example to keep the formatting.
# Default: "" - do not create PID file # - Line breaks should be at column 100.
# "./realmd.pid" - create PID file (recommended name) ###################################################################################################
#
# LogLevel ###################################################################################################
# Server console level of logging # AUTH SERVER SETTINGS
# Default: 0 = Minimum #
# 1 = Basic # LogsDir
# 2 = Detail # Description: Logs directory setting.
# 3 = Full/Debug # Important: LogsDir needs to be quoted, as the string might contain space characters.
# # Logs directory must exists, or log file creation will be disabled.
# LogFile # Default: "" - (Log files will be stored in the current path)
# Logfile name
# Default: "realmd.log" LogsDir = ""
# "" - Empty name disable creating log file
# #
# SQLDriverLogFile # MaxPingTime
# Log file of SQL driver events. # Description: Time (in seconds) between database pings.
# For effective query logging you need to build in debug configuration. # Default: 1800 - (30 minutes)
# Default: "" - Empty name for disable
# MaxPingTime = 1800
# LogTimestamp
# Logfile with timestamp of server start in name #
# in form Logname_YYYY-MM-DD_HH-MM-SS.Ext for Logname.Ext # RealmServerPort
# Default: 0 - no timestamp in name # Description: TCP port to reach the auth server.
# 1 - add timestamp in name # Default: 3724
#
# LogFileLevel RealmServerPort = 3724
# Server file level of logging
# Default: 0 = Minimum #
# 1 = Basic #
# 2 = Detail # BindIP
# 3 = Full/Debug # Description: Bind auth server to IP/hostname
# # Default: "0.0.0.0" - (Bind to all IPs on the system)
# LogColors
# Color for messages (format "normal basic detail debug") BindIP = "0.0.0.0"
# Default: "" - no colors
# Colors: 0 - BLACK #
# 1 - RED # PidFile
# 2 - GREEN # Description: Auth server PID file.
# 3 - BROWN # Example: "./authserver.pid" - (Enabled)
# 4 - BLUE # Default: "" - (Disabled)
# 5 - MAGENTA
# 6 - CYAN PidFile = ""
# 7 - GREY
# 8 - YELLOW #
# 9 - LRED # LogLevel
# 10 - LGREEN # Description: Server console level of logging
# 11 - LBLUE # Default: 0 - (Minimum)
# 12 - LMAGENTA # 1 - (Basic)
# 13 - LCYAN # 2 - (Detail)
# 14 - WHITE # 3 - (Full/Debug)
# Example: "13 11 9 5"
# LogLevel = 0
# EnableLogDB
# Enable/disable logging to database (LogDatabaseInfo). #
# Default: 0 - disabled # LogFile
# 1 - enabled # Description: Log file for main server log.
# # Default: "Auth.log" - (Enabled)
# DBLogLevel # "" - (Disabled)
# Log level of DB logging.
# 0 = Minimum LogFile = "Auth.log"
# Default: 1 = Basic
# 2 = Detail #
# 3 = Full/Debug # SQLDriverLogFile
# # Description: Log file for SQL driver events.
# UseProcessors # Example: "SQLDriver.log" - (Enabled)
# Processors mask for multi-processor system (Used only in Windows) # Default: "" - (Disabled)
# Default: 0 (selected by OS)
# number (bitmask value of selected processors) SQLDriverLogFile = ""
#
# ProcessPriority #
# Process proirity setting (Used only at Windows) # LogTimestamp
# Default: 1 (HIGH) # Description: Append timestamp to the server log file name.
# 0 (Normal) # Logname_YYYY-MM-DD_HH-MM-SS.Ext for Logname.Ext
# # Default: 0 - (Disabled)
# RealmsStateUpdateDelay # 1 - (Enabled)
# Realm list Update up delay
# (updated at realm list request if delay expired). LogTimestamp = 0
# Default: 20
# 0 (Disabled) #
# # LogFileLevel
# WrongPass.MaxCount # Description: Server file level of logging
# Number of login attemps with wrong password # Default: 0 - (Minimum)
# before the account or IP is banned # 1 - (Basic)
# Default: 0 (Never ban) # 2 - (Detail)
# # 3 - (Full/Debug)
# WrongPass.BanTime
# Duration of the ban in seconds (0 means permanent ban) LogFileLevel = 0
# Default: 600
# #
# WrongPass.BanType # LogColors
# Ban the IP or account on which login is attempted # Description: Colors for log messages (Format: "normal basic detail debug").
# Default: 0 (Ban IP) # Colors: 0 - Black
# 1 (Ban Account) # 1 - Red
# # 2 - Green
############################################################################### # 3 - Brown
# 4 - Blue
LogsDir = "" # 5 - Magenta
MaxPingTime = 30 # 6 - Cyan
RealmServerPort = 3724 # 7 - Grey
BindIP = "0.0.0.0" # 8 - Yellow
PidFile = "" # 9 - Lred
LogLevel = 0 # 10 - Lgreen
LogFile = "auth.log" # 11 - Lblue
SQLDriverLogFile = "" # 12 - Lmagenta
LogTimestamp = 0 # 13 - Lcyan
LogFileLevel = 0 # 14 - White
LogColors = "" # Example: "13 11 9 5" - (Enabled)
EnableLogDB = 0 # Default: "" - (Disabled)
DBLogLevel = 1
UseProcessors = 0 LogColors = ""
ProcessPriority = 1
RealmsStateUpdateDelay = 20 #
WrongPass.MaxCount = 0 # EnableLogDB
WrongPass.BanTime = 600 # Description: Write log messages to database (LogDatabaseInfo).
WrongPass.BanType = 0 # Default: 0 - (Disabled)
# 1 - (Enabled)
###############################################################################
# MYSQL SETTINGS EnableLogDB = 0
#
# LoginDatabaseInfo #
# Database connection settings for the realm server. # DBLogLevel
# Default: # Description: Log level of databases logging.
# hostname;port;username;password;database # Default: 1 - (Basic)
# .;somenumber;username;password;database # 0 - (Minimum)
# - use named pipes in Windows # 2 - (Detail)
# Named pipes: mySQL required adding # 3 - (Full/Debug)
# "enable-named-pipe" to [mysqld] section my.ini
# .;/path/to/unix_socket;username;password;database DBLogLevel = 1
# - use Unix sockets in Unix/Linux
# #
# LoginDatabase.WorkerThreads # UseProcessors
# The amount of worker threads spawned to handle # Description: Processors mask for Windows based multi-processor systems.
# asynchroneous MySQL statements # Default: 0 - (Selected by OS)
# Each worker thread is mirrored with its own # 1+ - (Bit mask value of selected processors)
# connection to the MySQL server and their own
# thread on the MySQL server. UseProcessors = 0
# Default: 1
# #
############################################################################### # ProcessPriority
# Description: Process priority setting for Windows based systems.
LoginDatabaseInfo = "127.0.0.1;3306;trinity;trinity;auth" # Default: 1 - (High)
LoginDatabase.WorkerThreads = 1 # 0 - (Normal)
ProcessPriority = 1
#
# RealmsStateUpdateDelay
# Description: Time (in seconds) between realm list updates.
# Default: 20 - (Enabled)
# 0 - (Disabled)
RealmsStateUpdateDelay = 20
#
# WrongPass.MaxCount
# Description: Number of login attemps with wrong password before the account or IP will be
# banned.
# Default: 0 - (Disabled)
# 1+ - (Enabled)
WrongPass.MaxCount = 0
#
# WrongPass.BanTime
# Description: Time (in seconds) for banning account or IP for invalid login attempts.
# Default: 600 - (10 minutes)
# 0 - (Permanent ban)
WrongPass.BanTime = 600
#
# WrongPass.BanType
# Description: Ban type for invalid login attempts.
# Default: 0 - (Ban IP)
# 1 - (Ban Account)
WrongPass.BanType = 0
#
###################################################################################################
###################################################################################################
# MYSQL SETTINGS
#
# LoginDatabaseInfo
# Description: Database connection settings for the realm server.
# Example: "hostname;port;username;password;database"
# ".;somenumber;username;password;database" - (Use named pipes on Windows
# "enable-named-pipe" to [mysqld]
# section my.ini)
# ".;/path/to/unix_socket;username;password;database" - (use Unix sockets on
# Unix/Linux)
# Default: "127.0.0.1;3306;trinity;trinity;auth"
LoginDatabaseInfo = "127.0.0.1;3306;trinity;trinity;auth"
#
# LoginDatabase.WorkerThreads
# Description: The amount of worker threads spawned to handle asynchronous (delayed) MySQL
# statements. Each worker thread is mirrored with its own connection to the
# MySQL server and their own thread on the MySQL server.
# Default: 1 - (LoginDatabase.WorkerThreads)
LoginDatabase.WorkerThreads = 1
#
###################################################################################################
File diff suppressed because it is too large Load Diff