Debian Codegraph @

conf/bnetd.conf.win32

raw
1 ##############################################################################
2 # bnetd.conf - Configuration file for the Unix Battle.net daemon #
3 #----------------------------------------------------------------------------#
4 # #
5 # This file is an example configuration and may require modification to #
6 # suit your needs or your site. Blank lines and lines starting with a "#" #
7 # are ignored. Use quotes around values that contain spaces. #
8 # #
9 ##############################################################################
10
11
12 ##############################################################################
13 # Storage section #
14 # storage_path will tell pvpgn how and where from/to to read/write accounts #
15 # right now it supports 2 "drivers" : file and sql #
16 # #
17 # Syntax: #
18 # * for plain file driver: #
19 # storage_path = file:mode=plain;dir=<path_to_user_files>;clan=<path_to_clan_files>;team=<path_to_team_files>;default=/path/to/default/account #
20 # * for cdb file driver: #
21 # storage_path = file:mode=cdb;dir=<path_to_cdb_files>;clan=<path_to_clan_files>;team=<path_to_team_files>;default=/path/to/default/account #
22 # * for sql driver: #
23 # storage_path = sql:variable=value;...;default=0 (0 is the default uid) #
24 # #
25 # Variables for sql can be: #
26 # - "mode" : tells PVPGN the sql mode you will use (mysql/pgsql/etc..) #
27 # - "host" : the database host #
28 # - "port" : the TCP/IP port if needed #
29 # - "socket" : the UNIX local socket if needed #
30 # - "name" : database name #
31 # - "user" : db username #
32 # - "pass" : db password #
33 # - "default" : specify the UID to use for the default account data #
34 # - "prefix" : prefix to use for all pvpgn tables (default "") #
35 # #
36 # Examples: #
37 # storage_path = file:mode=plain;dir=var\users;clan=var\clans;team=var\teams\;default=conf\bnetd_default_user.plain
38 # storage_path = file:mode=cdb;dir=var\userscdb;clan=var\clans;team=var\teams\;default=conf\bnetd_default_user.cdb
39 # storage_path = sql:mode=mysql;host=127.0.0.1;name=PVPGN;user=pvpgn;pass=pvpgnrocks;default=0;prefix=pvpgn_
40 # storage_path = sql:mode=pgsql;host=127.0.0.1;name=pvpgn;user=pvpgn;pass=pvpgnrocks;default=0;prefix=pvpgn_
41 # storage_path = sql:mode=sqlite3;name=var\users.db;default=0;prefix=pvpgn_
42 # storage_path = sql:mode=odbc;name=PVPGN;prefix=pvpgn_
43 #----------------------------------------------------------------------------#
44
45 storage_path = file:mode=plain;dir=var\users;clan=var\clans;team=var\teams;default=conf\bnetd_default_user.plain
46
47 # #
48 ##############################################################################
49
50 ##############################################################################
51 # File section #
52 # The pidfile can be set to "" to turn it off. #
53 # Use absolute paths in these lines to avoid problems! #
54 #----------------------------------------------------------------------------#
55
56 filedir = files
57 scriptdir = lua
58 reportdir = var\reports
59 chanlogdir = var\chanlogs
60 userlogdir = var\userlogs
61 i18ndir = conf\i18n
62 issuefile = conf\bnissue.txt
63 channelfile = conf\channel.conf
64 adfile = conf\ad.json
65 topicfile = conf\topics.conf
66 ipbanfile = conf\bnban.conf
67 transfile = conf\address_translation.conf
68 mpqfile = conf\autoupdate.conf
69 logfile = var\bnetd.log
70 realmfile = conf\realm.conf
71 versioncheck_file = conf\versioncheck.json
72 mapsfile = conf\bnmaps.conf
73 xplevelfile = conf\bnxplevel.conf
74 xpcalcfile = conf\bnxpcalc.conf
75 #pidfile = var\bnetd.pid
76 ladderdir = var\ladders
77 command_groups_file = conf\command_groups.conf
78 statusdir = var\status
79 aliasfile = conf\bnalias.conf
80 anongame_infos_file = conf\anongame_infos.conf
81 DBlayoutfile = conf\sql_DB_layout.conf
82 supportfile = conf\supportfile.conf
83 customicons_file = conf\icons.conf
84
85
86 # #
87 ##############################################################################
88
89
90 ##############################################################################
91 # Localized files realm server settings #
92 #----------------------------------------------------------------------------#
93
94 # These filenames can have translated versions in
95 # the "i18ndir" directory specified above.
96 # (there are also two downloadable files: chathelp-war3.txt, newaccount.txt)
97 localizefile = common.xml
98 motdfile = bnmotd.txt
99 motdw3file = w3motd.txt
100 newsfile = news.txt
101 helpfile = bnhelp.conf
102 tosfile = termsofservice.txt
103
104 # Do localization by a game language or by user country?
105 localize_by_country = true
106
107 # #
108 ##############################################################################
109
110
111 ##############################################################################
112 # Message logs #
113 #----------------------------------------------------------------------------#
114
115 # Multiple log levels can be defined by connecting them with a comma (,)
116 # Available loglevels are:
117 # none
118 # trace
119 # debug
120 # info
121 # warn
122 # error
123 # fatal
124 #loglevels = fatal,error,warn,info,debug,trace
125 loglevels = fatal,error,warn,info
126
127 # #
128 ##############################################################################
129
130
131 ##############################################################################
132 # D2CS realm server settings #
133 #----------------------------------------------------------------------------#
134
135 # Version of D2CS server to connect with (set to zero to disable version check)
136 d2cs_version = 0
137
138 # Allow the D2CS server to change realm names?
139 allow_d2cs_setname = true
140
141 # #
142 ##############################################################################
143
144
145 ##############################################################################
146 # Downloadable files #
147 #----------------------------------------------------------------------------#
148
149 # These filenames are reported directly to the client and are relative to
150 # the "filedir" directory specified above.
151 iconfile = "icons.bni"
152 war3_iconfile = "icons-WAR3.bni"
153 star_iconfile = "icons_STAR.bni"
154
155 # #
156 ##############################################################################
157
158
159 ##############################################################################
160 # Client verification and upgrades #
161 #----------------------------------------------------------------------------#
162
163 # This option lists the client types allowed to connect (only valid for
164 # the bnet and wol protocol). The list is a comma separated list of any of
165 # the following elements:
166 # all : all client types allowed (default)
167 # chat : client type "CHAT" allowed (used by some bot software)
168 # dshr : client type Diablo 1 Shareware
169 # drtl : client type Diablo 1 (Retail)
170 # sshr : client type Starcraft Shareware
171 # star : client type Starcraft
172 # sexp : client type Starcraft Broodwar
173 # w2bn : client type Warcraft II Battle.Net Edition
174 # d2dv : client type Diablo 2
175 # d2xp : client type Diablo 2 LOD
176 # war3 : client type Warcraft III (Reign Of Chaos)
177 # w3xp : client type Warcraft III Frozen Throne
178 # tsun : client type Tiberian Sun
179 # tsxp : client type Tiberian Sun Firestorm
180 # ralt : client type Red Alert (with 4 players internet patche)
181 # ral2 : client type Red Alert 2
182 # dn2k : client type Dune 2000
183 # noxx : client type Nox
184 # noxq : client type Nox Quest
185 # rngd : client type Renegade
186 # yuri : client type Yuri's Revenge
187 # empr : client type Emperor: Battle for Dune
188 #
189 # Example: allowed_clients = war3,w3xp
190 allowed_clients = all
191
192 # If you enable the version checks but want to allow clients that don't pass
193 # the checksum test then enable this.
194 allow_bad_version = true
195
196 # If you enable the version checks but want to allow clients that aren't
197 # listed in the versioncheck configuration file then enable this. Unless
198 # you have a very complete file or are very paranoid about cheaters this
199 # is a good idea.
200 allow_unknown_version = true
201
202 # #
203 ##############################################################################
204
205
206 ##############################################################################
207 # Time values #
208 #----------------------------------------------------------------------------#
209
210 # Time in seconds between account file updates, 0 means wait forever.
211 usersync = 300
212 # Number of seconds of inactivity before file is unloaded from memory.
213 # (only checked during account file updates)
214 userflush = 3600
215 # Number of users checked for updates at once. Higher values make sense if you
216 # either have very fast hardware or you don't have many number of accounts.
217 # Lower values make sense if you have very high CPU usage on the system you run
218 # the server (dont make it too low or your system will save accounts continously).
219 # Modify this value ONLY if you know what you are doing!!
220 userstep = 100
221 # Flush connected users? Set "false" and they will never flushed untill logout (it will consume more memory but less CPU usage, because of no queries to a file)
222 userflush_connected = true
223
224 # How often to send user latency tests in seconds.
225 latency = 600
226
227 # How often to send null or keepalive packets in seconds.
228 nullmsg = 120
229
230 # Amount of time to delay shutting down server in seconds.
231 shutdown_delay = 300
232 # Amount of time delay period is decremented by either a SIGTERM or SIGINT
233 # (control-c) signal in seconds.
234 shutdown_decr = 60
235
236 # How often should bans be checked for expiration? (in seconds)
237 #ipban_check_int = 30
238
239 # #
240 ##############################################################################
241
242
243 ##############################################################################
244 # Policy options #
245 #----------------------------------------------------------------------------#
246
247 # If you don't want people to be able to create new accounts, set this to
248 # false.
249 new_accounts = true
250
251 # Set this to the maximum number of accounts you want to allow to be
252 # created on your server. A value of 0 means infinite and is the default.
253 #max_accounts = 0
254
255 # If someone attempts to log in more than once, should it kick off the old
256 # login, or deny the new one?
257 kick_old_login = true
258 #kick_old_login = false
259 # With no passwords, this is bad to have enabled --NonReal
260
261 # load_new_account option has been eliminated and the functionality now is
262 # always active in PvPGN
263
264 # If a user is creating a new channel, should it be added automatically, or
265 # prompt them first?
266 ask_new_channel = true
267
268 # Should a game report be written for every game played or just ladder
269 # games?
270 #report_all_games = false
271 report_all_games = true
272
273 # Should Diablo I/II reports be written? There are no winners/losers.
274 report_diablo_games = false
275
276 # Should games with passwords be hidden on the game list?
277 hide_pass_games = true
278
279 # Should games already started be hidden on the game list? (for heavily
280 # loaded servers)
281 hide_started_games = true
282
283 # Should non-permanent channels hidden on the channel list?
284 hide_temp_channels = true
285
286 # Should any and all disconnects to be counted as losses?
287 # (Turning this on will override the user's choice in ladder games!)
288 disc_is_loss = false
289
290 # List additional game types to be counted as ladder games
291 # Curently allowed types: topvbot, melee, ffa, oneonone
292 # Example: ladder_games = "topvbot,oneonone"
293 ladder_games = "none"
294
295 # If additional game types are configured (see above) to be counted as ladder
296 # games then this setting configures a game name prefix to make only games
297 # which match this game name prefix be counted as ladder. This allows to
298 # still have normal games of the game types configured with "ladder_games"
299 # directive. However if this setting is commented or "" then ALL games
300 # which match the game types configured with "ladder_games" are to be
301 # considered as ladder games. The prefix checking is CASE SENSITIVE!
302 # Example: ladder_prefix = "ldr_"
303 ladder_prefix = ""
304
305 # Should all users be able to use the /con and /connections commands?
306 enable_conn_all = true
307
308 # Should client IP addresses (from /con, /games, /gameinfo, /netinfo)
309 # be hidden from non-admins?
310 hide_addr = false
311
312 # Should private channel messages be logged to files in the chanlogdir
313 # directory? (see channels.list for public channels)
314 chanlog = false
315
316 # Do you want to use the channel quota feature?
317 quota = yes
318
319 # The following options deal with flood prevention.
320 #
321 # How many lines do you accept in quota_time seconds?
322 # (The default should allow 5 lines in 5 seconds,
323 # longer time periods allow "bursts" of traffic before the quota is full.)
324 quota_lines = 5 # must be between 1 and 100 lines
325 quota_time = 5 # must be between 1 and 60 seconds
326 # "virtual wrapping", so long lines count as multiple lines
327 quota_wrapline = 40 # must be between 1 to 256 chars
328 # absolute maximum characters allowed in a line
329 quota_maxline = 200 # must be between 1 to 256 chars
330 #
331 # How many lines do you accept in quota_time seconds before user is
332 # disconnected?
333 # (According to Jung-woo, Dobae is a Korean term for flooding the game server...
334 # it originally meant "to paint the wallpaper on a new or refurbished house").
335 # If it less than or equal to quota_lines, there is no warning before
336 # disconnection so don't set this too low.
337 quota_dobae = 10 # must be between 1 and 100 lines
338
339 # Mail support
340 mail_support = true
341 mail_quota = 5
342
343 # Channel logging message
344 log_notice = "*** Please note this channel is logged! ***"
345
346 # Ban on repeated password fails against bruteforce password thieves
347 # Fails required to get ip banned (0 to disable ban on password fail)
348 passfail_count = 0
349
350 # Password fail IP ban duration (in seconds)
351 passfail_bantime = 300
352
353 # Max users limit in private channels (0 = unlimited)
354 maxusers_per_channel = 0
355
356 # #
357 ##############################################################################
358
359
360 ##############################################################################
361 # Account configuration #
362 #----------------------------------------------------------------------------#
363
364 # Should account files be named by the account number or the player name?
365 savebyname = true
366
367 # Save the account data on logoff
368 sync_on_logoff = false
369
370 # How man rows should the account lookup hash table have? Servers with
371 # more accounts should use a larger table for better performance.
372 hashtable_size = 61
373
374 # Per default, only alphanumerical symbols are allowed in account names
375 # with this variable you can add some extra symbols to be allowed
376 # but be warned - that some of them might cause trouble - at least with
377 # savebyname=true (some symbols are forbidden in filenames or might cause
378 # you real trouble - plz neither allow wildcard symbols like '*' or '?'.
379 # Path delimiters like '/' or '\' are hardcoded filtered and can't be allowed.
380 # Also note that allowing the '.' might cause u some headache on win32 systems.
381 # You have been warned - the rest is up to you.
382 # default setting is "-_[]" as it was previous versions
383 account_allowed_symbols = "-_[]"
384
385 # This setting affects users that login with their uid rather than their
386 # username. If set to true their displayed username will be forcefully
387 # converted to their registered account name.
388 account_force_username = false
389
390 # maximum number of friends a user can add to there friends list
391 # default setting is 20
392 max_friends = 20
393
394 # #
395 ##############################################################################
396
397
398 ##############################################################################
399 # Tracking server info #
400 #----------------------------------------------------------------------------#
401
402 # Set track=0 to disable tracking. Any other number will set number
403 # of seconds between sending tracking packets. This is ON by default.
404 #track = 0
405 track = 60
406
407 # Tracking server(s)
408 # Use a comma delimited list of hostnames with optional UDP port numbers
409 # after colons. (port 6114 is the default for the newer tracking protocol)
410 trackaddrs = "track.pvpgn.org,bntrack.darkwings.org,bnet.mivabe.nl,track.eurobattle.net"
411
412 # Change these to match your system, for example:
413 location = "unknown"
414 description = "unknown"
415 url = "https://github.com/pvpgn/pvpgn-server"
416 contact_name = "a PvPGN user"
417 contact_email = "unknown"
418
419 # #
420 ##############################################################################
421
422
423 ##############################################################################
424 # Server network info #
425 #----------------------------------------------------------------------------#
426
427 # Servername by which the server identifies itself (default: "PvPGN Realm")
428 #servername = "PvPGN Realm"
429
430 # Set this to the maximum number of concurrent connections allowed on
431 # this server (minimum 32). This limit sets a general server connection
432 # limit, NOT the concurrent user limit (for that see next option)
433 max_connections = 1000
434
435 # Set maximum amount of packets in client packet queue
436 # If limit is reached, client connection will be dropped
437 # Set to 0 to disable
438 packet_limit = 1000
439
440 # Maximum number of concurrent users (0 means unlimited).
441 max_concurrent_logins = 0
442
443 # Set this option to true to allow TCP to detect and close stale
444 # connections.
445 use_keepalive = false
446
447 # Limit maximum number of connections per IP (0 = unlimited)
448 # this feature is new, so no recommended value so far
449 # (d2cs connections are exempted from this limitation)
450 max_conns_per_IP = 0
451
452 # This is a comma delimited list of hostnames that the server should
453 # listen on. It might be useful to make an internal-only server on a
454 # gateway machine for example. If the list is not set or if it has a
455 # entry with no host component, the server will bind to that port on all
456 # interfaces.
457 #servaddrs = ":9999"
458 #servaddrs = "myinternalname.some.com,localhost"
459 servaddrs = ":" # default interface (all) and default port (6112)
460
461 # Don't change these unless you really need to! You will need to run a proxy
462 # or modify the clients. Also note that these will not change when simply
463 # sending a HUP signal to the server; they are only read on startup.
464
465 # This is the port the server send the UDP test packets to by default.
466 # Setting it to zero makes the server use the same port as the TCP connection
467 # comes from. Newer clients can override this setting on a per connection
468 # basis.
469 #udptest_port = 6112
470
471
472 # W3 Play Game router address. Just put your server address in here
473 # or use 0.0.0.0:6200 for server to bind to all interfaces,
474 # but make sure you set up w3trans if you do.
475 w3routeaddr = "0.0.0.0:6200"
476
477 # w3routeshow has been removed.
478 # see the address_translation.conf for translating the w3route ip for local networks
479
480 # initkill_timer sets up a periodic timer on init/defer class connections
481 # this should detect and clean up stale connections to your server
482 initkill_timer = 120
483
484 # #
485 ##############################################################################
486
487 ##############################################################################
488 # Westwood Online (WOL) configuration #
489 #----------------------------------------------------------------------------#
490
491 # NOTE: WOL support is still experimental!
492
493 # This specifies the addresses where WOL connections should be accepted. See
494 # the description of servaddrs for formatting information. Leave this field
495 # blank if you do not want to accept WOL connections. If the wolv1 port is
496 # not specifed then 4005 will be used. Also if wolv2 port is not specifed
497 # then 4000 will be used.
498 # WOLv2 address includes servserv, game/chatting and ladder services.
499 #
500 # Note: DO NOT SET THE PORT TO ANYTHING OTHER THEN 4000 for WOLv1 or 4005 for
501 # WOLv2, WOL WILL FAIL IF YOU DO!
502
503 #wolv1addrs = ":4000"
504 #wolv2addrs = ":4005"
505 #wgameresaddrs = ":4807"
506 #apiregaddrs = ":5400"
507
508 # Just leave these as default (unless you know the timezone, longitiude and latitude
509 # of your server
510 woltimezone = "-8"
511 wollongitude = "36.1083"
512 wollatitude = "-115.0582"
513
514 # These as default means that WOL autoupdate will use official WOL FTP server.
515 # As "wol_update_serverhost" can be used also an IP address. FTP server is not
516 # component of PvPGN so for that purpose can be used any FTP server.
517 # Note that username and password is specifiable only in WOLv2 protocol. WOLv1
518 # will always use the default values.
519 wol_autoupdate_serverhost = "westwood-patch.ea.com"
520 wol_autoupdate_username = "update"
521 wol_autoupdate_password = "world96"
522
523 # #
524 ##############################################################################
525
526 ##############################################################################
527 # Internet Relay Chat (IRC) configuration #
528 #----------------------------------------------------------------------------#
529
530 # NOTE: IRC support is still experimental!
531
532 # This specifies the addresses where IRC connections should be accepted. See
533 # the description of servaddrs for formatting information. Leave this field
534 # blank if you do not want to accept IRC connections. If the port is not
535 # specifed then 6667 will be used.
536 #ircaddrs = ":6667"
537
538 # This is the IRC network name. If this is not specified then the default of
539 # "PvPGN" will be used.
540 #irc_network_name = "PvPGN"
541
542 # This is the hostname used for IRC connections. Set this to your
543 # hostname, if the automatic detection doesn't correctly.
544 #hostname = "none"
545
546 # Set this to the desired IRC connection timeout in seconds.
547 #irc_latency = 180
548
549 # #
550 ##############################################################################
551
552
553 ##############################################################################
554 # Telnet configuration #
555 #----------------------------------------------------------------------------#
556
557 # This specifies the addresses where telnet connections should be accepted.
558 # See the description of servaddrs for formatting information. Leave this
559 # field # blank if you do not want to accept telnet connections. If the port
560 # is not specifed then 23 will be used.
561 #telnetaddrs = ":23"
562
563 # #
564 ##############################################################################
565
566 ###############################################################################
567 # war3 ladder textual output #
568 #-----------------------------------------------------------------------------#
569 # this is for all the guys, that want Warcraft 3 ladder, but don't want their
570 # server to run with MySQL support.
571 # For each ladder (solo, team, ffa, at) a corresponing file is created,
572 # so it's easy to build your ladder pages with them
573
574 # the following value determines, at which rate, these files are created
575 # set to 0 if you don't want or need these files
576 war3_ladder_update_secs = 300
577
578 # jfro's latest ladder is based on XML... so we can switch to XML output of ladder
579 # on demand. Maybe we should set update interval bigger cause XML output version
580 # is much more verbose than the standard output
581 XML_output_ladder = false
582
583 ###############################################################################
584 # server status textual output #
585 #-----------------------------------------------------------------------------#
586 # This is for writing status of the server in an attempt to see number of user
587 # on line actually, and games/chans.
588 # This is store in file var\status\warcraft3.dat as a *.ini format.
589 # Shouldn't be so hard in php to create dynamic website using this content.
590
591 # the following value determines, at which rate, these files are created
592 # set to 0 if you don't want or need these files
593 output_update_secs = 60
594
595 # jfro's latest ladder is based on XML... so we can switch to XML output of ladder
596 # on demand. Maybe we should set update interval bigger cause XML output version
597 # is much more verbose than the standard output
598 XML_status_output = false
599
600 ###############################################################################
601 # clan settings #
602 #-----------------------------------------------------------------------------#
603
604 # Time in hours for a new member of clan to be a newer(Peon icon, cannot promote to Grunt)
605 # default value 168(7 days). If set to 0, all new members could be promote in no time
606 clan_newer_time = 0
607
608 # max members count allowed in a clan, set between 10 and 100, default 50.
609 clan_max_members = 50
610
611 # Default clan channel status when create a clan, 1 for private, 0 for public
612 clan_channel_default_private = 0
613
614 # Minimum accepted invites for create new clan. 0 = clans will be created
615 # without accepted invitations need. This does not affect WAR3/W3XP ingame
616 # clan management.
617 clan_min_invites = 2
618
619 ###############################################################################
620 # user commands logging #
621 #-----------------------------------------------------------------------------#
622
623 # Should commands from users be logged to files in the userlogdir?
624 log_commands = true
625
626 # Commands will be logged for users with these command groups
627 # (global operators and admins are included)
628 log_command_groups = 2345678
629
630 # List of commands that will be logged
631 # can be defined by connecting them with a comma (,)
632 # set empty to log all commands
633 log_command_list = ""
634