Debian Codegraph @

conf/bnetd.conf.in

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