# $Id: dcd.conf.in,v 1.65 2006/10/18 10:51:51 rav Exp $ # ######################################## ## DConnect Daemon configuration file ## ######################################## ## Config generated for dcd version: @VERSION@ ## Instalation prefix: @prefix@ ## Default location of config files: @CONFIGDIR@ ## The default location of this file is @prefix@/etc/dcd which can be ## changed by passing a `--with-config-dir' option to ./configure ## script while building. ######################## ## Main configuration ## ######################## # ip to bind Daemon to # 0.0.0.0 means all available addresses # IMPORTANT: is set only when starting dcd # This must be set to real interface when you want to link with other hubs bind_address = 0.0.0.0 # Daemon's listening port. Both TCP and UDP is used # IMPORTANT: is set only when starting dcd listen_port_main = 411 # Amount of Threads listening on port_main # IMPORTANT: is set only when starting dcd # # minimum/default/maximum = 1 / 2 / 5 n_listen_main = 1 # Amount of Threads managing user's communicates # IMPORTANT: is set only when starting dcd # # As for now it is better to set it to 1. # otherwise you will have glibc errors # # minimum/default/maximum = 1 / 2 / 10 n_user_manager = 1 # Remote console listening port. Set 0 to disable. # IMPORTANT: is set only when starting dcd listen_port_cons = 511 # UID/GID # IMPORTANT: is set only when starting dcd # # If changed after installation set apriopriate user and group # for directories and files in it: # @LOG_DIR@ # @CONFIGDIR@ (${prefix}=@prefix@) user = @DEFAULT_USER@ group = @DEFAULT_GROUP@ #A file in which you define ips ports and passwords for hubs to link conf_hublinks = dcd.hublinks # A text file in dcd's config directory with welcome message. # This file will be played to the public chat window when users connect. # Set empty if you don't want it at all. conf_welcome = dcd.welcome # A text file in dcd's config directory with anything you want to send # to users after successful registration. # Set empty if you don't want it at all. conf_motd = dcd.motd # A text file in dcd's config directory with rules sent after #rules # Set empty if you don't want it at all. conf_rules = dcd.rules # A text file in dcd's config directory with raw UserCommands sent to every user on the hub # Set empty if you don't want it at all. conf_usercommands = dcd.usercommands # A text file in dcd's config directory with list of banned hosts. conf_banned = dcd.banned # A text file in dcd's config directory with administration accounts. conf_cusers = dcd.users # A text file in dcd's config directory with list of hosts allowed to # access the console. conf_callow = console.allow # A text file in dcd's config directory with list of allowed nicks. # All nicks are allowed by default. # Set empty if you don't want it at all. conf_nallow = nicks.allow ############# ## Logging ## ############# # Log level. # No logging: 0 # System (via syslog): +1 # Standard: +2 # Network: +4 # Protocol: +8 # Warning: +16 # Console: +32 # Chat: +64 log_level=55 # Log files location. log_dir=@LOG_DIR@ # Main log file name. log_main=dcd.log # Network access log file name. log_net=access.log # Protocol stuff log file name. log_proto=protocol.log # Internal errors & warnings log file name. log_wrng=warnings.log # Console log file name. log_con=console.log # Public chat log file name. log_chat=chat.log ####################### ## Personal settings ## ####################### # Contact to admin # it is shown when user is not allowed to connect to hub # default god@heaven.com admin_contact = god@heaven.com # Name of your hub. hubname = DConnectDaemon v@VERSION@ # Max amount of users you allow. user_limit = 1000 # Minimum shared data in megabytes. min_share = 300 # Minimum number of slots. #min_slots = 4 # If set to 1 then Client's key is not checked at all. allow_broken_key = 0 # Allow public/private chats. # On heavy loaded servers it may be a good idea to set it to "0". # Default is "1" and most people will not change it. allow_chat = 1 # Allow passive mode. if 0 then hub will kick users in passive mode # on search or on download attepmt, only chatting is allowed # Default is "1" and most people will not change it. allow_passive = 1 # Allow forwarding. Allow users to specify his ip in client used when users # behind NAT want to be in Active mode. If you want to let only a chosen users # to forward their ports look at the 'f' option in dcd.users # default = 0 allow_forwarding = 0 # Allow downloads. Allow users to download data from the others. # default = 1 allow_downloads = 1 # Allow search. Allow to search from the others # default = 1 allow_search = 1 # This option allows not to use also non US-ASCII nicks # Some clients have problems with those kinds of nicks, # so use it carefully. # default 0 allow_non_us_ascii_nicks = 0 # Only registered. only registered users may connect and use hub. # default 0 registered_only = 0 # Disconnect client after being idle for this time (in seconds). # Normally, the protocol prevents client from being idle for # more than 60 secs, so setting this to 120 is safe enough and # protects from `zombie' sessions. Some client implementations # do not follow the 60 secs antiidle mechanism, so this is # disabled by default. idle_timeout = 0 # Obligate client to complete its registration within this # pediod (in seconds). register_timeout = 30 # This parameter specifies the maximum amount of commands executed by hub at once for each user. # min/default 2/100 max_commands=100 # the maximal message sent by user(sOP or console user are not tested) # default/max 0/2000 # if set to 0 it is not tested max_chat_length=0 # Does hub has to kick users who sent longer message than max_chat_message? # default 0 just warns # >0 kicks kick_max_chat_length=0 # This parameter makes the application sleep for specified amount of us. # With this parameter you can make hub using less processor. # default 0 minimal_sleep_time = 0 # Specifies in seconds the interval between user searches # for sOP it is ignored # default 30 search_interval = 30 #Amount of bytes for system socket buffers socket_send_buffer=10240 socket_receive_buffer=10240 # Amount of data read at once from socket # not more than 1024 # default 1024 max_receive_once = 1024 # This parameter sets up interval in seconds between updates of penalties file # Do not set to 0 unless you do not want to update this file at all # # minimal/default 10/30 penalties_update_interval = 30 # Standard Penalty duration time in minutes # Used when punishing user does not specify the duration of penalty # Default is "10" std_penalty_duration = 10 # Redirectcing because of reason. # 0 off # +1 if user has no access # +2 if hub is full # +4 if minimal number of shares is not reached # +8 if minimal number of slots is not reached redirect_switch = 0 # Addresses for redirection # if user has no access and redirect_switch is turned on then user is moved to redirect_access = 127.0.0.1:411 # if hub is full and redirect_switch is turned on then user is moved to redirect_hub_is_full = 127.0.0.1:411 # if user did not reach min_share limit and redirect_switch is turned on # then user is moved to redirect_min_share = 127.0.0.1:411 # if user did not reach min_slots limit and redirect_switch is turned on # then user is moved to redirect_min_slots = 127.0.0.1:411