Configuration reference

Every directive there is to know. Type to filter; click a directive to expand it.

No directives match your search.

Hub options

hub_namedefault: "uhub"
DescriptionConfigures the name of the hub.
TypeString
Default"uhub"
Sinceuhub 0.1.0
Examplehub_name = "my hub"
hub_descriptiondefault: ""
DescriptionThe description of the hub, as seen by users and hub lists.
TypeString
Default""
Sinceuhub 0.1.0
Examplehub_description = "a friendly hub for friendly people"
max_usersdefault: 500
DescriptionThe maximum number of users allowed on the hub. No new users are allowed in once this is exceeded. Operators (and above) can still log in.
TypeNumber > 0
Default500
Sinceuhub 0.1.0
Examplemax_users = 25
show_bannerdefault: yes
DescriptionIf enabled, the hub announces the software version to clients when they connect, e.g. "Powered by uhub/0.x.y".
Typeboolean
Defaultyes
Sinceuhub 0.1.0
Exampleshow_banner = no
registered_users_onlydefault: no
DescriptionIf enabled, only registered users can use the hub. A user must be registered in the acl file (file_acl).
Typeboolean
Defaultno
Sinceuhub 0.1.1
chat_onlydefault: no
DescriptionIf enabled, the hub refuses to relay search and connection-setup messages, making it viable for chat only.
Typeboolean
Defaultno
Sinceuhub 0.1.1
chat_is_privilegeddefault: no
DescriptionIf enabled, only operators and admins are allowed to chat in the main chat.
Typeboolean
Defaultno
Sinceuhub 0.2.4
low_bandwidth_modedefault: no
DescriptionIf enabled, the hub removes excessive information (description, e-mail, etc.) from each client's INF message before broadcasting it.
Typeboolean
Defaultno
Sinceuhub 0.2.2
file_motddefault: "/etc/uhub/motd.txt"
DescriptionA message-of-the-day file. Its contents are sent to all users after they log in. Ignored if the file is missing or empty.
Typefile
Default"/etc/uhub/motd.txt"
Sinceuhub 0.1.3
Examplefile_motd = "/etc/uhub/motd.txt"
file_acldefault: "/etc/uhub/users.conf"
DescriptionThe access control list (acl) file storing registered users, bans, etc. If missing or empty, no registered users or ban records are used.
Typefile
Default"/etc/uhub/users.conf"
Sinceuhub 0.1.3
Examplefile_acl = "/etc/uhub/users.conf"
server_bind_addrdefault: "any"
DescriptionThe IP address the hub binds to. An IPv4/IPv6 address, or the special values "any" or "loopback". With "any"/"loopback" the hub auto-detects and prefers IPv6.
TypeString, IP address, "any" or "loopback"
Default"any"
Sinceuhub 0.1.2
Exampleserver_bind_addr = "192.168.12.69"
server_portdefault: 1511
DescriptionThe port number the hub listens on.
Typenumber > 0 and < 65536
Default1511
Sinceuhub 0.1.0
server_listen_backlogdefault: 50
DescriptionNumber of connections the hub accepts in the backlog before they must be processed. Too low a value means the hub will not accept reconnecting users fast enough.
Typenumber > 5
Default50
Sinceuhub 0.3.0
limit_max_hubs_userdefault: 0
DescriptionLimits the number of hubs a user can be logged into as a guest. If exceeded, entry is denied.
Typenumber, 0 = disabled
Default0
Sinceuhub 0.2.0
limit_max_hubs_regdefault: 0
DescriptionLimits the number of hubs a user can be logged into as a registered user.
Typenumber, 0 = disabled
Default0
Sinceuhub 0.2.0
limit_max_hubs_opdefault: 0
DescriptionLimits the number of hubs a user can be logged into as an operator.
Typenumber, 0 = disabled
Default0
Sinceuhub 0.2.0
limit_max_hubsdefault: 0
DescriptionLimits the total number of hubs a user can be logged into, regardless of registration or privileges.
Typenumber, 0 = disabled
Default0
Sinceuhub 0.2.0
limit_min_hubs_userdefault: 0
DescriptionOnly allow users that are logged into other hubs with guest privileges to enter this hub.
Typenumber, 0 = disabled
Default0
Sinceuhub 0.2.0
limit_min_hubs_regdefault: 0
DescriptionOnly allow users that are logged into other hubs as a registered user to enter this hub.
Typenumber, 0 = disabled
Default0
Sinceuhub 0.2.0
limit_min_hubs_opdefault: 0
DescriptionOnly allow users that are logged into other hubs with operator privileges to enter this hub.
Typenumber, 0 = disabled
Default0
Sinceuhub 0.2.0
limit_min_sharedefault: 0
DescriptionMinimum share in MiB. Users sharing less are not allowed in.
Typenumber, 0 = disabled
Default0
Sinceuhub 0.2.0
Examplelimit_min_share = 1024
limit_max_sharedefault: 0
DescriptionMaximum share in MiB. Users sharing more are not allowed in.
Typenumber, 0 = disabled
Default0
Sinceuhub 0.2.0
limit_min_slotsdefault: 0
DescriptionMinimum number of upload slots required. Users with fewer are not allowed in.
Typenumber, 0 = disabled
Default0
Sinceuhub 0.2.0
limit_max_slotsdefault: 0
DescriptionMaximum number of upload slots allowed. Users with more are not allowed in.
Typenumber, 0 = disabled
Default0
Sinceuhub 0.2.0
tls_certificateno default
DescriptionPath to a TLS/SSL certificate (PEM format).
Typefile
Sinceuhub 0.3.0
tls_private_keyno default
DescriptionPath to a TLS/SSL private key (PEM format).
Typefile
Sinceuhub 0.3.0
tls_enabledefault: no
DescriptionEnables/disables TLS/SSL support. tls_certificate and tls_private_key must be set if enabled.
Typeboolean
Defaultno
Sinceuhub 0.3.0
tls_requiredefault: yes
DescriptionIf TLS/SSL is enabled, whether it is mandatory. If disabled, users may connect with or without TLS.
Typeboolean
Defaultyes
Sinceuhub 0.3.0

Access control (users.conf)

user_adminusername:password
DescriptionAn administrator user with full access to configure the hub, plus operator privileges.
Syntaxuser_admin username:password
Sinceuhub 0.1.2
user_superusername:password
DescriptionA super user with more privileges than an operator but fewer than an administrator.
Syntaxuser_super username:password
Sinceuhub 0.2.1
user_opusername:password
DescriptionAn operator who can kick and ban users from the hub.
Syntaxuser_op username:password
Sinceuhub 0.1.2
user_regusername:password
DescriptionA registered user with no special privileges, but a password-protected username that can enter registered-only hubs.
Syntaxuser_reg username:password
Sinceuhub 0.1.2
deny_nickusername
DescriptionA denied username. Any user identifying with this nickname is denied access.
Syntaxdeny_nick username
Sinceuhub 0.1.2
Exampledeny_nick Administrator
deny_nick root
deny_nick Hub-Security
ban_nickusername
DescriptionA user banned by nickname. Differs from deny_nick in the message the user receives.
Syntaxban_nick username
ban_cidcid
DescriptionA user banned by CID (a 39-byte base32-encoded client identifier).
Syntaxban_cid cid
Sinceuhub 0.1.2
Exampleban_cid FOIL5EK2UDZYAXT7UIUFEKL4SEBEAJE3INJDKAY
deny_ipip range/mask
DescriptionDeny access to users from certain IP addresses, given as ranges or address/bitmask. Works for IPv6 too.
Syntaxdeny_ip ip range/mask
Sinceuhub 0.1.2
Exampledeny_ip 192.168.0.0/24
deny_ip ::1/128
nat_ipip range/mask
DescriptionAllow users behind the same NAT router as the hub to advertise a public IP. The hub rewrites IPs for other users on the same NATed network. IPv4 only.
Syntaxnat_ip ip range/mask
Sinceuhub 0.2.1
Examplenat_ip 192.168.1.0/24

Message strings

msg_hub_fullstring
DescriptionSent when the hub is full.
TypeString
Default"Hub is full"
Sinceuhub 0.2.0
msg_hub_disabledstring
DescriptionSent when the hub is disabled (hub_enable = no).
TypeString
Default"Hub is disabled"
Sinceuhub 0.2.0
msg_hub_registered_users_onlystring
DescriptionSent when the hub only accepts registered users.
TypeString
Default"Hub is for registered users only"
Sinceuhub 0.2.0
msg_inf_error_nick_missingstring
DescriptionSent to clients that do not provide a nickname.
TypeString
Default"No nickname given"
Sinceuhub 0.2.0
msg_inf_error_nick_multiplestring
DescriptionSent to clients that provide multiple nicknames.
TypeString
Default"Multiple nicknames given"
Sinceuhub 0.2.0
msg_inf_error_nick_invalidstring
DescriptionSent to clients that provide an invalid nickname.
TypeString
Default"Nickname is invalid"
Sinceuhub 0.2.0
msg_inf_error_nick_longstring
DescriptionSent to clients with a too-long nickname.
TypeString
Default"Nickname too long"
Sinceuhub 0.2.0
msg_inf_error_nick_shortstring
DescriptionSent to clients with a too-short nickname.
TypeString
Default"Nickname too short"
Sinceuhub 0.2.0
msg_inf_error_nick_spacesstring
DescriptionSent to clients whose nickname starts with a space.
TypeString
Default"Nickname cannot start with spaces"
Sinceuhub 0.2.0
msg_inf_error_nick_bad_charsstring
DescriptionSent to clients with invalid characters in the nickname.
TypeString
Default"Nickname contains invalid characters"
Sinceuhub 0.2.0
msg_inf_error_nick_not_utf8string
DescriptionSent to clients whose nickname is not valid UTF-8.
TypeString
Default"Nickname is not valid utf8"
Sinceuhub 0.2.0
msg_inf_error_nick_takenstring
DescriptionSent when the provided nickname is already in use.
TypeString
Default"Nickname is already in use"
Sinceuhub 0.2.0
msg_inf_error_nick_restrictedstring
DescriptionSent when a restricted nickname is used (configured in the acl).
TypeString
Default"Nickname cannot be used on this hub"
Sinceuhub 0.2.0
msg_inf_error_cid_invalidstring
DescriptionSent to clients that provide an invalid client ID (CID).
TypeString
Default"CID is not valid"
Sinceuhub 0.2.0
msg_inf_error_cid_missingstring
DescriptionSent to clients that do not provide a client ID (CID).
TypeString
Default"CID is not specified"
Sinceuhub 0.2.0
msg_inf_error_cid_takenstring
DescriptionSent when the provided CID is already in use.
TypeString
Default"CID is taken"
Sinceuhub 0.2.0
msg_inf_error_pid_missingstring
DescriptionSent to clients that do not provide a private ID (PID).
TypeString
Default"PID is not specified"
Sinceuhub 0.2.0
msg_inf_error_pid_invalidstring
DescriptionSent to clients that provide an invalid private ID (PID).
TypeString
Default"PID is invalid"
Sinceuhub 0.2.0
msg_ban_permanentlystring
DescriptionSent to users who are permanently banned (see acl).
TypeString
Default"Banned permanently"
Sinceuhub 0.2.0
msg_ban_temporarilystring
DescriptionSent to users who are temporarily banned.
TypeString
Default"Banned temporarily"
Sinceuhub 0.2.0
msg_auth_invalid_passwordstring
DescriptionSent to users who provide a wrong password.
TypeString
Default"Password is wrong"
Sinceuhub 0.2.0
msg_user_share_size_lowstring
DescriptionSent to users who are not sharing enough.
TypeString
Default"User is not sharing enough"
Sinceuhub 0.2.0
msg_user_share_size_highstring
DescriptionSent to users who are sharing too much.
TypeString
Default"User is sharing too much"
Sinceuhub 0.2.0
msg_user_slots_lowstring
DescriptionSent to users with too few upload slots.
TypeString
Default"User have too few upload slots."
Sinceuhub 0.2.0
msg_user_slots_highstring
DescriptionSent to users with too many upload slots.
TypeString
Default"User have too many upload slots."
Sinceuhub 0.2.0
msg_user_hub_limit_lowstring
DescriptionSent to users on too few other hubs.
TypeString
Default"User is on too few hubs."
Sinceuhub 0.2.0
msg_user_hub_limit_highstring
DescriptionSent to users on too many other hubs.
TypeString
Default"User is on too many hubs."
Sinceuhub 0.2.0

Advanced

hub_enableddefault: yes
DescriptionUse this to disable the hub for a while.
Typeboolean
Defaultyes
Sinceuhub 0.1.3
max_recv_bufferdefault: 4096
DescriptionMaximum receive buffer before commands are processed. A single ADC message exceeding this limit is discarded. Use with caution.
Typenumber
Default4096
max_send_bufferdefault: 131072
DescriptionMaximum bytes queued for sending to a user before the hub disconnects them. Lower means more aggressive disconnection of slow clients. Use with caution.
Typenumber
Default131072
max_send_buffer_softdefault: 98304
DescriptionLike max_send_buffer, but low-priority messages may be discarded once reached. Use with caution.
Typenumber
Default98304