##############################################################################
# bnetd.conf  -  Configuration file for the Unix Battle.Net daemon           #
#----------------------------------------------------------------------------#
#                                                                            #
# This file is an example configuration and may require modification to      #
# suit your needs or your site.  Blank lines and lines starting with a "#"   #
# are ignored.  Use quotes around values that contain spaces.                #
#                                                                            #
##############################################################################


##############################################################################
# File section                                                               #
# The pidfile can be set to "" to turn it off.                               #
# Use absolute paths in these lines to avoid problems!                       #
#----------------------------------------------------------------------------#

filedir     = /usr/local/lib/bnetd/files/
userdir     = /usr/local/lib/bnetd/users/
reportdir   = /usr/local/lib/bnetd/reports/
defacct     = /usr/local/lib/bnetd/conf/bnetd_default_user
motdfile    = /usr/local/lib/bnetd/conf/bnmotd.txt
channelfile = /usr/local/lib/bnetd/conf/channel.list
newsfile    = /usr/local/lib/bnetd/conf/news.txt
adfile      = /user/local/lib/bnetd/conf/ad.list
#logfile     = /usr/local/lib/bnetd/bnetd.log    
#pidfile     = /usr/local/lib/bnetd.pid

#                                                                            #
##############################################################################


##############################################################################
# Message logs                                                               #
#----------------------------------------------------------------------------#

# Multiple log levels can be defined by connecting them with a comma (,)
# Available loglevels are:
#   none
#   debug
#   info
#   warn
#   error
loglevels = error,warn,info,debug
#loglevels = error,warn,info

#                                                                            #
##############################################################################


##############################################################################
# Downloadable files                                                         #
#----------------------------------------------------------------------------#

# These filenames are reported directly to the client and are relative to
# the "filedir" directory specified above.
iconfile = "icons.bni"
tosfile = "tos.txt"
# Auto-updates are probably broken now, best not to enable them :)
allow_autoupdate = false
#mpqfile = "missing.mpq"
#mpqversion = 0

#                                                                            #
##############################################################################


##############################################################################
# Time values                                                                #
#----------------------------------------------------------------------------#

# Time in seconds between account file updates, 0 means wait forever.
usersync  = 300
# Number of seconds of inactivity before file is unloaded from memory.
# (only checked during account file updates)
userflush = 1200

# How often to send user latency tests in seconds.
latency = 10

# Amount of time to delay shutting down server in seconds.
shutdown_delay = 300
# Amount of time delay period is decremented by either a
# SIGTERM or SIGINT signal in seconds.
shutdown_decr = 60

#                                                                            #
##############################################################################


##############################################################################
# Policy options                                                             #
#----------------------------------------------------------------------------#

# If you don't want people to be able to create new accounts,
# set this to false.
new_accounts = true

# If someone attempts to log in more than once, should it kick off the old
# login, or deny the new one?
kick_old_login = true
#kick_old_login = false

# If a user is creating a new channel, should it be added automatically,
# or prompt them first?
ask_new_channel = true

# Should a game report be written for every game played or just ladder
# games?
#report_all_games = false
report_all_games = true

# Should games with passwords be hidden on the game list?
hide_pass_games = true

# Should non-permanent channels hidden on the channel list?
hide_temp_channels = true

# Should the extended /-commands be avaliable? (of course!)
extra_commands = true

#                                                                            #
##############################################################################


##############################################################################
# Tracking server info                                                       #
#----------------------------------------------------------------------------#

# Set track=0 to disable tracking.  Any other number will set number
# of seconds between sending tracking packets. This is OFF by default.
track = 0
#track = 150

# Tracking server(s)
# Use a comma delimited list of hostnames with optional UDP port numbers
# after colons. (port 6114 is the default for the newer tracking protocol)
#trackaddrs = "track.bnetd.org,localhost:9999"
trackaddrs = "track.bnetd.org"

# Change these to match your system, for example:
#location = "San Diego, CA, USA"
#description = "The XYZ Server"
#url = "http://www.foo.com/xyzserver.html"
#contact_name = "John Doe"
#contact_email = "jd@foo.com"

#                                                                            #
##############################################################################


##############################################################################
# Server address info                                                        #
#----------------------------------------------------------------------------#

# This is a comma delimited list of hostnames that the server should
# listen on.  It might be useful to make an internal-only server on a
# gateway machine for example.  If the list is not set or if it has a
# entry with no host component, the server will bind to that port on all
# interfaces.
#servaddrs = ":9999"
#servaddrs = "myinternalname.some.com,localhost"
#servaddrs = ":" # default interface (all) and default port (6112)

# Don't change these unless you really need to!  You will need to run a proxy
# or modify the clients.  Also note that these will not change when simply
# sending a HUP signal to the server; they are only read on startup.

# The port the client serves the game from
gameport = 6112

# This is a list of IP:port numbers to translate for clients behind firewalls
# doing NAT. The format is:
#      internalgamehostip@firewallip:firewallforwardingport
#gametrans = "12.34.56.78@11.22.33.44:8000,128.123.63.83@1.2.3.4:999"

# The port the client checks for UDP test packets on
testport = 6112

#                                                                            #
##############################################################################

