2009-02-19 16:14:09 +00:00
|
|
|
# uhub.conf - A example configuration file.
|
|
|
|
# You should normally place this file in /etc/uhub/uhub.conf
|
2012-05-11 01:10:05 +00:00
|
|
|
# and customize some of the settings below.
|
2009-02-19 16:14:09 +00:00
|
|
|
#
|
|
|
|
# This file is read only to the uhub deamon, and if you
|
|
|
|
# make changes to it while uhub is running you can send a
|
2010-02-05 21:40:35 +00:00
|
|
|
# HUP signal to it ( $ killall -HUP uhub ), to reparse configuration (only on UNIX).
|
2010-01-14 06:49:03 +00:00
|
|
|
# All configuration directives: http://www.uhub.org/config.php
|
2009-02-19 16:14:09 +00:00
|
|
|
|
|
|
|
# Bind to this port and address
|
|
|
|
# server_bind_addr=any means listen to "::" if IPv6 is supported
|
|
|
|
# by the host OS, otherwise 0.0.0.0.
|
|
|
|
server_port=1511
|
|
|
|
server_bind_addr=any
|
|
|
|
|
2010-01-28 07:53:03 +00:00
|
|
|
# Alternative server ports
|
|
|
|
# server_alt_ports = 1512, 1513
|
|
|
|
|
2009-02-19 16:14:09 +00:00
|
|
|
# The maximum amount of users allowed on the hub.
|
|
|
|
max_users=500
|
|
|
|
|
2010-02-10 22:45:51 +00:00
|
|
|
# If 1, will show a "Powered by uHub/{VERSION}".
|
2009-02-19 16:14:09 +00:00
|
|
|
show_banner=1
|
|
|
|
|
2010-02-10 22:45:51 +00:00
|
|
|
# If enabled then operating system and cpu architecture is part of the banner.
|
|
|
|
show_banner_sys_info=1
|
|
|
|
|
2009-02-19 16:14:09 +00:00
|
|
|
# Allow only registered users on the hub if set to 1.
|
|
|
|
registered_users_only=0
|
|
|
|
|
|
|
|
# A server name and description.
|
|
|
|
hub_name=my hub
|
|
|
|
hub_description=Powered by uHub
|
|
|
|
|
|
|
|
# Set this to 0, and the hub will disconnect everyone
|
|
|
|
hub_enabled=1
|
|
|
|
|
|
|
|
# Access control list (user database)
|
|
|
|
file_acl=/etc/uhub/users.conf
|
|
|
|
|
2010-07-29 08:26:55 +00:00
|
|
|
# This file can contain a conf for plugin subsystem
|
|
|
|
file_plugins = /etc/uhub/plugins.conf
|
2010-01-20 08:12:43 +00:00
|
|
|
|
2010-04-05 14:53:17 +00:00
|
|
|
# Slots/share/hubs limits
|
2010-01-14 06:49:03 +00:00
|
|
|
limit_max_hubs_user = 0
|
|
|
|
limit_max_hubs_reg = 0
|
|
|
|
limit_max_hubs_op = 0
|
|
|
|
limit_max_hubs = 0
|
|
|
|
limit_min_hubs_user = 0
|
|
|
|
limit_min_hubs_reg = 0
|
|
|
|
limit_min_hubs_op = 0
|
|
|
|
limit_min_share = 0
|
2010-02-05 21:40:35 +00:00
|
|
|
# Example:
|
2010-01-14 06:49:03 +00:00
|
|
|
# To require users to share at least 1 GB in order to enter the hub:
|
|
|
|
# limit_min_share = 1024
|
|
|
|
limit_max_share = 0
|
|
|
|
limit_min_slots = 0
|
2010-02-05 21:40:35 +00:00
|
|
|
limit_max_slots = 0
|
2010-01-14 06:49:03 +00:00
|
|
|
|
2010-04-05 14:53:17 +00:00
|
|
|
# Flood control support:
|
|
|
|
# set the interval to 5 seconds
|
|
|
|
flood_ctl_interval = 5
|
|
|
|
|
|
|
|
# Then the maximum chat, connect, search, updates etc will be measured over 5 seconds.
|
|
|
|
# So, 3 chat messages per 5 seconds allowed.
|
|
|
|
flood_ctl_chat=3
|
|
|
|
flood_ctl_connect=20
|
|
|
|
flood_ctl_search=1
|
|
|
|
flood_ctl_update=2
|
|
|
|
flood_ctl_extras=5
|
|
|
|
|
2010-02-02 10:43:10 +00:00
|
|
|
# chat control
|
2010-02-05 21:40:35 +00:00
|
|
|
# if chat_is_privileged=yes only registered users may write in main chat
|
|
|
|
chat_is_privileged = no
|
2010-02-02 10:43:10 +00:00
|
|
|
|
2010-01-14 06:49:03 +00:00
|
|
|
|
2010-04-09 08:20:36 +00:00
|
|
|
# if obsolete_clients=1 allows old clients to enter , 0 gives an error message (msg_proto_obsolete_adc0) if they try connect
|
|
|
|
# defaults obsolete_clients=1
|
|
|
|
obsolete_clients=1
|
|
|
|
|
|
|
|
|
2009-02-19 16:14:09 +00:00
|
|
|
# Configure status message as sent to clients in different circumstances.
|
|
|
|
msg_hub_full = Hub is full
|
|
|
|
msg_hub_disabled = Hub is disabled
|
|
|
|
msg_hub_registered_users_only = Hub is for registered users only
|
|
|
|
msg_inf_error_nick_missing = No nickname given
|
|
|
|
msg_inf_error_nick_multiple = Multiple nicknames given
|
|
|
|
msg_inf_error_nick_invalid = Nickname is invalid
|
|
|
|
msg_inf_error_nick_long = Nickname too long
|
|
|
|
msg_inf_error_nick_short = Nickname too short
|
|
|
|
msg_inf_error_nick_spaces = Nickname cannot start with spaces
|
|
|
|
msg_inf_error_nick_bad_chars = Nickname contains invalid characters
|
|
|
|
msg_inf_error_nick_not_utf8 = Nickname is not valid utf8
|
|
|
|
msg_inf_error_nick_taken = Nickname is already in use
|
|
|
|
msg_inf_error_nick_restricted = Nickname cannot be used on this hub
|
|
|
|
msg_inf_error_cid_invalid = CID is not valid
|
|
|
|
msg_inf_error_cid_missing = CID is not specified
|
|
|
|
msg_inf_error_cid_taken = CID is taken
|
|
|
|
msg_inf_error_pid_missing = PID is not specified
|
|
|
|
msg_inf_error_pid_invalid = PID is invalid
|
|
|
|
msg_ban_permanently = Banned permanently
|
|
|
|
msg_ban_temporarily = Banned temporarily
|
|
|
|
msg_auth_invalid_password = Password is wrong
|
|
|
|
msg_auth_user_not_found = User not found in password database
|
2010-01-14 06:49:03 +00:00
|
|
|
msg_user_share_size_low = User is not sharing enough
|
|
|
|
msg_user_share_size_high = User is sharing too much
|
2012-07-06 11:18:01 +00:00
|
|
|
msg_user_slots_low = User has too few upload slots
|
|
|
|
msg_user_slots_high = User has too many upload slots
|
2010-01-14 06:49:03 +00:00
|
|
|
msg_user_hub_limit_low = User is on too few hubs
|
|
|
|
msg_user_hub_limit_high = User is on too many hubs
|
2012-07-06 11:18:01 +00:00
|
|
|
msg_error_no_memory = Out of memory
|
2010-04-05 14:53:17 +00:00
|
|
|
msg_user_flood_chat = Chat flood detected, messages are dropped.
|
|
|
|
msg_user_flood_connect = Connect flood detected, connection refused.
|
|
|
|
msg_user_flood_search = Search flood detected, search is stopped.
|
|
|
|
msg_user_flood_update = Update flood detected.
|
|
|
|
msg_user_flood_extras = Flood detected.
|
|
|
|
|
|
|
|
# If a client that supports ADC but not a compatible hash algorithm (tiger),
|
|
|
|
# then the hub cannot accept the client:
|
|
|
|
msg_proto_no_common_hash = No common hash algorithm.
|
|
|
|
|
|
|
|
# Message to be shown to old clients using an older version of ADC than ADC/1.0
|
|
|
|
msg_proto_obsolete_adc0 = Client is using an obsolete ADC protocol version.
|
2009-02-19 16:14:09 +00:00
|
|
|
|