File: config_example.txt

package info (click to toggle)
uhub 0.4.1-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,420 kB
  • ctags: 2,241
  • sloc: ansic: 18,124; xml: 575; perl: 568; sh: 368; makefile: 24
file content (49 lines) | stat: -rw-r--r-- 970 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Example configuration
---------------------

(This document is maintained at http://www.uhub.org/config_example.php)


Configuration files are normaly placed in /etc/uhub/ on most systems, and consist of 3 files:

uhub.conf
    The main configuration file
users.conf
    The user registration and access control file
motd.txt
    A text file containing a "message of the day", which is a welcome message sent to all users connecting to the hub.


Example: uhub.conf

hub_name=My Public Hub
hub_description=Yet another ADC hub

server_port=12345
server_bind_addr=any
max_users=150

file_acl=/etc/uhub/users.conf
file_motd=/etc/uhub/motd.txt


Example: users.conf

# Deny users from certain IP-addresses
deny_ip 10.21.44.7/24
deny_ip 10.22.43.15-10.22.43.19

# Administrator
user_admin Administrator:password

# Operators
user_op Dj_Offset:password
user_op TrustedUser:password

# Registered users
user_reg Friend:password

# Banned users
ban_nick Enemy
ban_nick Spammer