Advertisement
loikuu

bnetserver.conf

Aug 29th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.64 KB | None | 0 0
  1. ###############################################
  2. # Trinity Core Auth Server configuration file #
  3. ###############################################
  4. [bnetserver]
  5.  
  6. ###################################################################################################
  7. # SECTION INDEX
  8. #
  9. # EXAMPLE CONFIG
  10. # AUTH SERVER SETTINGS
  11. # MYSQL SETTINGS
  12. # UPDATE SETTINGS
  13. # LOGGING SYSTEM SETTINGS
  14. #
  15. ###################################################################################################
  16.  
  17. ###################################################################################################
  18. # EXAMPLE CONFIG
  19. #
  20. # Variable
  21. # Description: Brief description what the variable is doing.
  22. # Important: Annotation for important things about this variable.
  23. # Example: "Example, i.e. if the value is a string"
  24. # Default: 10 - (Enabled|Comment|Variable name in case of grouped config options)
  25. # 0 - (Disabled|Comment|Variable name in case of grouped config options)
  26. #
  27. # Note to developers:
  28. # - Copy this example to keep the formatting.
  29. # - Line breaks should be at column 100.
  30. ###################################################################################################
  31.  
  32. ###################################################################################################
  33. # AUTH SERVER SETTINGS
  34. #
  35. # LogsDir
  36. # Description: Logs directory setting.
  37. # Important: LogsDir needs to be quoted, as the string might contain space characters.
  38. # Logs directory must exists, or log file creation will be disabled.
  39. # Default: "" - (Log files will be stored in the current path)
  40.  
  41. LogsDir = "/legion/server/logs"
  42.  
  43. #
  44. # MaxPingTime
  45. # Description: Time (in minutes) between database pings.
  46. # Default: 30
  47.  
  48. MaxPingTime = 30
  49.  
  50. #
  51. # BattlenetPort
  52. # Description: TCP port to reach the auth server for battle.net connections.
  53. # Default: 1119
  54.  
  55. BattlenetPort = 1119
  56.  
  57. #
  58. # LoginREST.Port
  59. # Description: TCP port to reach the REST login method.
  60. # Default: 8081
  61. #
  62. # LoginREST.ExternalAddress
  63. # Description: IP address sent to clients connecting from outside the network where bnetserver runs
  64. # Set it to your external IP address
  65. #
  66. # LoginREST.LocalAddress
  67. # Description: IP address sent to clients connecting from inside the network where bnetserver runs
  68. # Set it to your local IP address (common 192.168.x.x network)
  69. # or leave it at default value 127.0.0.1 if connecting directly to the internet without a router
  70. #
  71.  
  72. LoginREST.Port = 8081
  73. LoginREST.ExternalAddress=x.x.x.x
  74. LoginREST.LocalAddress=127.0.0.1
  75.  
  76. #
  77. #
  78. # BindIP
  79. # Description: Bind auth server to IP/hostname
  80. # Default: "0.0.0.0" - (Bind to all IPs on the system)
  81.  
  82. BindIP = "0.0.0.0"
  83.  
  84. #
  85. # PidFile
  86. # Description: Auth server PID file.
  87. # Example: "./bnetserver.pid" - (Enabled)
  88. # Default: "" - (Disabled)
  89.  
  90. PidFile = ""
  91.  
  92. #
  93. # CertificatesFile
  94. # Description: Certificates file.
  95. # Example: "/etc/ssl/certs/bnetserver.cert.pem"
  96. # Default: "./bnetserver.cert.pem"
  97.  
  98. CertificatesFile = "./bnetserver.cert.pem"
  99.  
  100. #
  101. # PrivateKeyFile
  102. # Description: Private key file.
  103. # Example: "/etc/ssl/private/bnetserver.key.pem"
  104. # Default: "./bnetserver.key.pem"
  105.  
  106. PrivateKeyFile = "./bnetserver.key.pem"
  107.  
  108. #
  109. # UseProcessors
  110. # Description: Processors mask for Windows and Linux based multi-processor systems.
  111. # Example: A computer with 2 CPUs:
  112. # 1 - 1st CPU only, 2 - 2nd CPU only, 3 - 1st and 2nd CPU, because 1 | 2 is 3
  113. # Default: 0 - (Selected by OS)
  114. # 1+ - (Bit mask value of selected processors)
  115.  
  116. UseProcessors = 0
  117.  
  118. #
  119. # ProcessPriority
  120. # Description: Process priority setting for Windows and Linux based systems.
  121. # Details: On Linux, a nice value of -15 is used. (requires superuser). On Windows, process is set to HIGH class.
  122. # Default: 0 - (Normal)
  123. # 1 - (High)
  124.  
  125. ProcessPriority = 0
  126.  
  127. #
  128. # RealmsStateUpdateDelay
  129. # Description: Time (in seconds) between realm list updates.
  130. # Default: 10
  131. # 0 - (Disabled)
  132.  
  133. RealmsStateUpdateDelay = 10
  134.  
  135. #
  136. # WrongPass.MaxCount
  137. # Description: Number of login attemps with wrong password before the account or IP will be
  138. # banned.
  139. # Default: 0 - (Disabled)
  140. # 1+ - (Enabled)
  141.  
  142. WrongPass.MaxCount = 0
  143.  
  144. #
  145. # WrongPass.BanTime
  146. # Description: Time (in seconds) for banning account or IP for invalid login attempts.
  147. # Default: 600 - (10 minutes)
  148. # 0 - (Permanent ban)
  149.  
  150. WrongPass.BanTime = 600
  151.  
  152. #
  153. # WrongPass.BanType
  154. # Description: Ban type for invalid login attempts.
  155. # Default: 0 - (Ban IP)
  156. # 1 - (Ban Account)
  157.  
  158. WrongPass.BanType = 0
  159.  
  160. #
  161. # WrongPass.Logging
  162. # Description: Additionally log attempted wrong password logging
  163. # Default: 0 - (Disabled)
  164. # 1 - (Enabled)
  165.  
  166. WrongPass.Logging = 0
  167.  
  168. #
  169. # BanExpiryCheckInterval
  170. # Description: Time (in seconds) between checks for expired bans
  171. # Default: 60
  172.  
  173. BanExpiryCheckInterval = 60
  174.  
  175. #
  176. # SourceDirectory
  177. # Description: The path to your TrinityCore source directory.
  178. # If the path is left empty, the built-in CMAKE_SOURCE_DIR is used.
  179. # Example: "../TrinityCore"
  180. # Default: ""
  181.  
  182. SourceDirectory = ""
  183.  
  184. #
  185. # MySQLExecutable
  186. # Description: The path to your mysql cli binary.
  187. # If the path is left empty, built-in path from cmake is used.
  188. # Example: "C:/Program Files/MySQL/MySQL Server 5.6/bin/mysql.exe"
  189. # "mysql.exe"
  190. # "/usr/bin/mysql"
  191. # Default: ""
  192.  
  193. MySQLExecutable = ""
  194.  
  195. #
  196. ###################################################################################################
  197.  
  198. ###################################################################################################
  199. # MYSQL SETTINGS
  200. #
  201. # LoginDatabaseInfo
  202. # Description: Database connection settings for the realm server.
  203. # Example: "hostname;port;username;password;database"
  204. # ".;somenumber;username;password;database" - (Use named pipes on Windows
  205. # "enable-named-pipe" to [mysqld]
  206. # section my.ini)
  207. # ".;/path/to/unix_socket;username;password;database" - (use Unix sockets on
  208. # Unix/Linux)
  209. # Default: "127.0.0.1;3306;trinity;trinity;auth"
  210.  
  211. LoginDatabaseInfo = "127.0.0.1;3306;trinity;xxxxx;auth_legion"
  212.  
  213. #
  214. # LoginDatabase.WorkerThreads
  215. # Description: The amount of worker threads spawned to handle asynchronous (delayed) MySQL
  216. # statements. Each worker thread is mirrored with its own connection to the
  217. # MySQL server and their own thread on the MySQL server.
  218. # Default: 1
  219.  
  220. LoginDatabase.WorkerThreads = 1
  221.  
  222. #
  223. # LoginDatabase.SynchThreads
  224. # Description: The amount of MySQL connections spawned to handle.
  225. # Default: 1 - (LoginDatabase.SynchThreads)
  226.  
  227. LoginDatabase.SynchThreads = 1
  228.  
  229. #
  230. ###################################################################################################
  231.  
  232. ###################################################################################################
  233. # UPDATE SETTINGS
  234. #
  235. # Updates.EnableDatabases
  236. # Description: A mask that describes which databases shall be updated.
  237. #
  238. # Following flags are available
  239. # DATABASE_LOGIN = 1, // Auth database
  240. #
  241. # Default: 0 - (All Disabled)
  242. # 1 - (All Enabled)
  243.  
  244. Updates.EnableDatabases = 0
  245.  
  246. #
  247. # Updates.AutoSetup
  248. # Description: Auto populate empty databases.
  249. # Default: 1 - (Enabled)
  250. # 0 - (Disabled)
  251.  
  252. Updates.AutoSetup = 1
  253.  
  254. #
  255. # Updates.Redundancy
  256. # Description: Perform data redundancy checks through hashing
  257. # to detect changes on sql updates and reapply it.
  258. # Default: 1 - (Enabled)
  259. # 0 - (Disabled)
  260.  
  261. Updates.Redundancy = 1
  262.  
  263. #
  264. # Updates.ArchivedRedundancy
  265. # Description: Check hashes of archived updates (slows down startup).
  266. # Default: 0 - (Disabled)
  267. # 1 - (Enabled)
  268.  
  269. Updates.ArchivedRedundancy = 0
  270.  
  271. #
  272. # Updates.AllowRehash
  273. # Description: Inserts the current file hash in the database if it is left empty.
  274. # Useful if you want to mark a file as applied but you don't know its hash.
  275. # Default: 1 - (Enabled)
  276. # 0 - (Disabled)
  277.  
  278. Updates.AllowRehash = 1
  279.  
  280. #
  281. # Updates.CleanDeadRefMaxCount
  282. # Description: Cleans dead/ orphaned references that occur if an update was removed or renamed and edited in one step.
  283. # It only starts the clean up if the count of the missing updates is below or equal the Updates.CleanDeadRefMaxCount value.
  284. # This way prevents erasing of the update history due to wrong source directory state (maybe wrong branch or bad revision).
  285. # Disable this if you want to know if the database is in a possible "dirty state".
  286. # Default: 3 - (Enabled)
  287. # 0 - (Disabled)
  288. # -1 - (Enabled - unlimited)
  289.  
  290. Updates.CleanDeadRefMaxCount = 3
  291.  
  292. #
  293. ###################################################################################################
  294.  
  295. ###################################################################################################
  296. #
  297. # LOGGING SYSTEM SETTINGS
  298. #
  299. # Appender config values: Given a appender "name"
  300. # Appender.name
  301. # Description: Defines 'where to log'
  302. # Format: Type,LogLevel,Flags,optional1,optional2,optional3
  303. #
  304. # Type
  305. # 0 - (None)
  306. # 1 - (Console)
  307. # 2 - (File)
  308. # 3 - (DB)
  309. #
  310. # LogLevel
  311. # 0 - (Disabled)
  312. # 1 - (Trace)
  313. # 2 - (Debug)
  314. # 3 - (Info)
  315. # 4 - (Warn)
  316. # 5 - (Error)
  317. # 6 - (Fatal)
  318. #
  319. # Flags:
  320. # 0 - None
  321. # 1 - Prefix Timestamp to the text
  322. # 2 - Prefix Log Level to the text
  323. # 4 - Prefix Log Filter type to the text
  324. # 8 - Append timestamp to the log file name. Format: YYYY-MM-DD_HH-MM-SS (Only used with Type = 2)
  325. # 16 - Make a backup of existing file before overwrite (Only used with Mode = w)
  326. #
  327. # Colors (read as optional1 if Type = Console)
  328. # Format: "fatal error warn info debug trace"
  329. # 0 - BLACK
  330. # 1 - RED
  331. # 2 - GREEN
  332. # 3 - BROWN
  333. # 4 - BLUE
  334. # 5 - MAGENTA
  335. # 6 - CYAN
  336. # 7 - GREY
  337. # 8 - YELLOW
  338. # 9 - LRED
  339. # 10 - LGREEN
  340. # 11 - LBLUE
  341. # 12 - LMAGENTA
  342. # 13 - LCYAN
  343. # 14 - WHITE
  344. # Example: "13 11 9 5 3 1"
  345. #
  346. # File: Name of the file (read as optional1 if Type = File)
  347. # Allows to use one "%s" to create dynamic files
  348. #
  349. # Mode: Mode to open the file (read as optional2 if Type = File)
  350. # a - (Append)
  351. # w - (Overwrite)
  352. #
  353. # MaxFileSize: Maximum file size of the log file before creating a new log file
  354. # (read as optional3 if Type = File)
  355. # Size is measured in bytes expressed in a 64-bit unsigned integer.
  356. # Maximum value is 4294967295 (4 gb). Leave blank for no limit.
  357. # NOTE: Does not work with dynamic filenames.
  358. # Example: 536870912 (512 mb)
  359. #
  360.  
  361. Appender.Console=1,2,0
  362. Appender.Bnet=2,2,0,Bnet.log,w
  363.  
  364. # Logger config values: Given a logger "name"
  365. # Logger.name
  366. # Description: Defines 'What to log'
  367. # Format: LogLevel,AppenderList
  368. #
  369. # LogLevel
  370. # 0 - (Disabled)
  371. # 1 - (Trace)
  372. # 2 - (Debug)
  373. # 3 - (Info)
  374. # 4 - (Warn)
  375. # 5 - (Error)
  376. # 6 - (Fatal)
  377. #
  378. # AppenderList: List of appenders linked to logger
  379. # (Using spaces as separator).
  380. #
  381.  
  382. Logger.root=3,Console Bnet
  383. Logger.realmlist=3,Console Bnet
  384. Logger.session=3,Console Bnet
  385. Logger.session.packets=3,Console Bnet
  386. Logger.sql.updates=3,Console Bnet
  387.  
  388. #
  389. ###################################################################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement