Advertisement
joe90

Auth config

May 2nd, 2012
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 7.99 KB | None | 0 0
  1. ###############################################
  2. # Trinity Core Auth Server configuration file #
  3. ###############################################
  4. [authserver]
  5.  
  6. ###################################################################################################
  7. # SECTION INDEX
  8. #
  9. #    EXAMPLE CONFIG
  10. #    AUTH SERVER SETTINGS
  11. #    MYSQL SETTINGS
  12. #
  13. ###################################################################################################
  14.  
  15. ###################################################################################################
  16. # EXAMPLE CONFIG
  17. #
  18. #    Variable
  19. #        Description: Brief description what the variable is doing.
  20. #        Important:   Annotation for important things about this variable.
  21. #        Example:     "Example, i.e. if the value is a string"
  22. #        Default:     10 - (Enabled|Comment|Variable name in case of grouped config options)
  23. #                     0  - (Disabled|Comment|Variable name in case of grouped config options)
  24. #
  25. # Note to developers:
  26. # - Copy this example to keep the formatting.
  27. # - Line breaks should be at column 100.
  28. ###################################################################################################
  29.  
  30. ###################################################################################################
  31. # AUTH SERVER SETTINGS
  32. #
  33. #    LogsDir
  34. #        Description: Logs directory setting.
  35. #        Important:   LogsDir needs to be quoted, as the string might contain space characters.
  36. #                     Logs directory must exists, or log file creation will be disabled.
  37. #        Default:     "" - (Log files will be stored in the current path)
  38.  
  39. LogsDir = "logs"
  40.  
  41. #
  42. #    MaxPingTime
  43. #        Description: Time (in minutes) between database pings.
  44. #        Default:     30
  45.  
  46. MaxPingTime = 30
  47.  
  48. #
  49. #    RealmServerPort
  50. #        Description: TCP port to reach the auth server.
  51. #        Default:     3724
  52.  
  53. RealmServerPort = 3724
  54.  
  55. #
  56. #
  57. #    BindIP
  58. #        Description: Bind auth server to IP/hostname
  59. #        Default:     "0.0.0.0" - (Bind to all IPs on the system)
  60.  
  61. BindIP = "0.0.0.0"
  62.  
  63. #
  64. #    PidFile
  65. #        Description: Auth server PID file.
  66. #        Example:     "./authserver.pid"  - (Enabled)
  67. #        Default:     ""                  - (Disabled)
  68.  
  69. PidFile = "./authserver.pid"
  70.  
  71. #
  72. #    LogLevel
  73. #        Description: Server console level of logging
  74. #        Default:     0 - (Minimum)
  75. #                     1 - (Basic)
  76. #                     2 - (Detail)
  77. #                     3 - (Full/Debug)
  78.  
  79. LogLevel = 1
  80.  
  81. #
  82. #    LogFile
  83. #        Description: Log file for main server log.
  84. #        Default:     "Auth.log" - (Enabled)
  85. #                     ""           - (Disabled)
  86.  
  87. LogFile = "Auth.log"
  88.  
  89. #
  90. #    Debug Log Mask
  91. #        Description: Bitmask that determines which debug log output (level 3)
  92. #                     will be logged.
  93. #        Possible flags:
  94. #
  95. #                  64 - Anything related to network input/output,
  96. #                        such as packet handlers and netcode logs
  97. #
  98. #                       Simply add the values together to create a bitmask.
  99. #                       For more info see enum DebugLogFilters in Log.h
  100. #
  101. #             Default: 0 (nothing)
  102.  
  103. DebugLogMask = 64
  104.  
  105. #
  106. #    SQLDriverLogFile
  107. #        Description: Log file for SQL driver events.
  108. #        Example:     "SQLDriver.log" - (Enabled)
  109. #        Default:      ""             - (Disabled)
  110.  
  111. SQLDriverLogFile = "SQLDriver.log"
  112.  
  113. #
  114. #    SQLDriverQueryLogging
  115. #        Description: Log SQL queries to the SQLDriverLogFile and console.
  116. #        Default:     0 - (Disabled, Query errors only)
  117. #                     1 - (Enabled, Full query logging - may have performance impact)
  118.  
  119. SQLDriverQueryLogging = 1
  120.  
  121. #
  122. #    LogTimestamp
  123. #        Description: Append timestamp to the server log file name.
  124. #                     Logname_YYYY-MM-DD_HH-MM-SS.Ext for Logname.Ext
  125. #        Default:     0 - (Disabled)
  126. #                     1 - (Enabled)
  127.  
  128. LogTimestamp = 1
  129.  
  130. #
  131. #    LogFileLevel
  132. #        Description: Server file level of logging
  133. #        Default:     0 - (Minimum)
  134. #                     1 - (Basic)
  135. #                     2 - (Detail)
  136. #                     3 - (Full/Debug)
  137.  
  138. LogFileLevel = 1
  139.  
  140. #
  141. #    LogColors
  142. #        Description: Colors for log messages (Format: "normal basic detail debug").
  143. #        Colors:      0  - Black
  144. #                     1  - Red
  145. #                     2  - Green
  146. #                     3  - Brown
  147. #                     4  - Blue
  148. #                     5  - Magenta
  149. #                     6  - Cyan
  150. #                     7  - Grey
  151. #                     8  - Yellow
  152. #                     9  - Lred
  153. #                     10 - Lgreen
  154. #                     11 - Lblue
  155. #                     12 - Lmagenta
  156. #                     13 - Lcyan
  157. #                     14 - White
  158. #        Example:     "13 11 9 5" - (Enabled)
  159. #        Default:     ""          - (Disabled)
  160.  
  161. LogColors = "14 11 8 1"
  162.  
  163. #
  164. #    EnableLogDB
  165. #        Description: Write log messages to database (LogDatabaseInfo).
  166. #        Default:     0 - (Disabled)
  167. #                     1 - (Enabled)
  168.  
  169. EnableLogDB = 1
  170.  
  171. #
  172. #    DBLogLevel
  173. #        Description: Log level of databases logging.
  174. #        Default:     1 - (Basic)
  175. #                     0 - (Minimum)
  176. #                     2 - (Detail)
  177. #                     3 - (Full/Debug)
  178.  
  179. DBLogLevel = 1
  180.  
  181. #
  182. #    UseProcessors
  183. #        Description: Processors mask for Windows based multi-processor systems.
  184. #        Default:     0  - (Selected by OS)
  185. #                     1+ - (Bit mask value of selected processors)
  186.  
  187. UseProcessors = 0
  188.  
  189. #
  190. #    ProcessPriority
  191. #        Description: Process priority setting for Windows based systems.
  192. #        Default:     1 - (High)
  193. #                     0 - (Normal)
  194.  
  195. ProcessPriority = 1
  196.  
  197. #
  198. #    RealmsStateUpdateDelay
  199. #        Description: Time (in seconds) between realm list updates.
  200. #        Default:     20 - (Enabled)
  201. #                     0  - (Disabled)
  202.  
  203. RealmsStateUpdateDelay = 20
  204.  
  205. #
  206. #    WrongPass.MaxCount
  207. #        Description: Number of login attemps with wrong password before the account or IP will be
  208. #                     banned.
  209. #        Default:     0  - (Disabled)
  210. #                     1+ - (Enabled)
  211.  
  212. WrongPass.MaxCount = 0
  213.  
  214. #
  215. #    WrongPass.BanTime
  216. #        Description: Time (in seconds) for banning account or IP for invalid login attempts.
  217. #        Default:     600 - (10 minutes)
  218. #                     0   - (Permanent ban)
  219.  
  220. WrongPass.BanTime = 600
  221.  
  222. #
  223. #    WrongPass.BanType
  224. #        Description: Ban type for invalid login attempts.
  225. #        Default:     0 - (Ban IP)
  226. #                     1 - (Ban Account)
  227.  
  228. WrongPass.BanType = 0
  229.  
  230. #
  231. ###################################################################################################
  232.  
  233. ###################################################################################################
  234. # MYSQL SETTINGS
  235. #
  236. #    LoginDatabaseInfo
  237. #        Description: Database connection settings for the realm server.
  238. #        Example:     "hostname;port;username;password;database"
  239. #                     ".;somenumber;username;password;database" - (Use named pipes on Windows
  240. #                                                                 "enable-named-pipe" to [mysqld]
  241. #                                                                 section my.ini)
  242. #                     ".;/path/to/unix_socket;username;password;database" - (use Unix sockets on
  243. #                                                                           Unix/Linux)
  244. #        Default:     "127.0.0.1;3306;trinity;trinity;auth"
  245.  
  246. LoginDatabaseInfo = "127.0.0.1;3306;(USERNAME);(PASSWORD)auth"
  247.  
  248. #
  249. #    LoginDatabase.WorkerThreads
  250. #        Description: The amount of worker threads spawned to handle asynchronous (delayed) MySQL
  251. #                     statements. Each worker thread is mirrored with its own connection to the
  252. #        Default:     1
  253.  
  254. LoginDatabase.WorkerThreads = 1
  255.  
  256. #
  257. ###################################################################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement