1 10bb43c6 2003-03-10 alex # $Id: sample-ngircd.conf,v 1.20 2003/03/10 00:23:34 alex Exp $
4 10bb43c6 2003-03-10 alex # This is a sample configuration file for the ngIRCd, which must adept to
5 10bb43c6 2003-03-10 alex # the local preferences and needs.
7 5b333085 2003-01-04 alex # Comments are started with "#" or ";".
9 5b333085 2003-01-04 alex # Author: Alexander Barton, <alex@barton.de>
10 5b333085 2003-01-04 alex # Initial translation by Ilja Osthoff, <ilja@glide.ath.cx>
15 10bb43c6 2003-03-10 alex # The [Global] section of this file is used to define the main
16 10bb43c6 2003-03-10 alex # configuration of the server, like the server name and the ports
17 10bb43c6 2003-03-10 alex # on which the server should be listening.
19 5b333085 2003-01-04 alex # Server name in the IRC-network
20 969e5f1c 2002-01-06 alex Name = irc.the.net
22 10bb43c6 2003-03-10 alex # Info text of the server. This will be shown by WHOIS and
23 10bb43c6 2003-03-10 alex # LINKS requests for example.
24 969e5f1c 2002-01-06 alex Info = Server Info Text
26 10bb43c6 2003-03-10 alex # Information about the server and the administrator, used by the
27 10bb43c6 2003-03-10 alex # ADMIN command.
28 5b333085 2003-01-04 alex ;AdminInfo1 = Description
29 5b333085 2003-01-04 alex ;AdminInfo2 = Location
30 efeba4a7 2002-09-16 alex ;AdminEMail = admin@irc.server
32 10bb43c6 2003-03-10 alex # Ports on which the server should listen. There may be more than
33 5b333085 2003-01-04 alex # one port, separated with ";". (Default: 6667)
34 5b333085 2003-01-04 alex ;Ports = 6667, 6668, 66694
36 10bb43c6 2003-03-10 alex # Text file with the "message of the day" (MOTD). This message will
37 10bb43c6 2003-03-10 alex # be shown to all users connecting to the server:
38 7efefd30 2002-03-29 alex ;MotdFile = /usr/local/etc/ngircd.motd
40 10bb43c6 2003-03-10 alex # User ID under which the server should run; you can use the name
41 10bb43c6 2003-03-10 alex # of the user or the numerical ID. ATTENTION: For this to work the
42 10bb43c6 2003-03-10 alex # server must have been started with root privileges! In addition,
43 10bb43c6 2003-03-10 alex # the configuration and MOTD files must be readable by this user,
44 10bb43c6 2003-03-10 alex # otherwise RESTART and REHASH won't work!
45 5b333085 2003-01-04 alex ;ServerUID = 65534
47 10bb43c6 2003-03-10 alex # Group ID under which the ngircd should run; you can use the name
48 10bb43c6 2003-03-10 alex # of the group or the numerical ID. ATTENTION: For this to work the
49 10bb43c6 2003-03-10 alex # server must have been started with root privileges!
50 5b333085 2003-01-04 alex ;ServerGID = 65534
52 10bb43c6 2003-03-10 alex # After <PingTimeout> seconds of inactivity the server will send a
53 10bb43c6 2003-03-10 alex # PING to the peer to test whether it is alive or not.
54 7efefd30 2002-03-29 alex ;PingTimeout = 120
56 10bb43c6 2003-03-10 alex # If a client fails to answer a PING with a PONG within <PongTimeout>
57 10bb43c6 2003-03-10 alex # seconds, it will be disconnected by the server.
58 7efefd30 2002-03-29 alex ;PongTimeout = 20
60 10bb43c6 2003-03-10 alex # The server tries every <ConnectRetry> seconds to establish a link
61 10bb43c6 2003-03-10 alex # to not yet (or no longer) connected servers.
62 7efefd30 2002-03-29 alex ;ConnectRetry = 60
64 10bb43c6 2003-03-10 alex # Should IRC Operators be allowed to use the MODE command even if
65 5b333085 2003-01-04 alex # they are not(!) channel-operators?
66 efeba4a7 2002-09-16 alex ;OperCanUseMode = no
68 a84b9d99 2003-03-09 alex # Maximum number of simultaneous connection the server is allowed
69 5b333085 2003-01-04 alex # to accept (<=0: unlimited):
70 aabe013d 2002-11-02 alex ;MaxConnections = -1
72 5b333085 2003-01-04 alex # Maximum number of channels a user can be member of (<=0: no limit):
73 e65ab4a3 2002-12-14 alex ;MaxJoins = 10
76 10bb43c6 2003-03-10 alex # [Operator] sections are used to define IRC Operators. There may be
77 10bb43c6 2003-03-10 alex # more than one [Operator] block, one for each local operator.
79 10bb43c6 2003-03-10 alex # ID of the operator (may be different of the nick name)
80 a8aab6bf 2002-03-10 alex ;Name = TheOper
82 10bb43c6 2003-03-10 alex # Password of the IRC operator
83 a8aab6bf 2002-03-10 alex ;Password = ThePwd
86 10bb43c6 2003-03-10 alex # Other servers are configured in [Server] sections. If you
87 10bb43c6 2003-03-10 alex # configure a port for the connection, then this ngircd tries to
88 10bb43c6 2003-03-10 alex # connect to to the other server on the given port; if not it waits
89 10bb43c6 2003-03-10 alex # for the other server to connect.
90 10bb43c6 2003-03-10 alex # There may be more than one server block.
92 10bb43c6 2003-03-10 alex # Server Groups:
93 10bb43c6 2003-03-10 alex # The ngIRCd allows "server groups": You can assign an "ID" to every
94 10bb43c6 2003-03-10 alex # server with which you want this ngIRCd to link. If a server of a
95 10bb43c6 2003-03-10 alex # group won't answer, the ngIRCd tries to connect to the next server
96 10bb43c6 2003-03-10 alex # in the given group. But the ngircd never tries to connect to two
97 10bb43c6 2003-03-10 alex # servers with the same group ID.
99 10bb43c6 2003-03-10 alex # IRC name of the server
100 a8aab6bf 2002-03-10 alex ;Name = irc2.the.net
102 10bb43c6 2003-03-10 alex # Internet host name of the peer
103 03d5fd6c 2002-12-18 alex ;Host = connect-to-host.the.net
105 10bb43c6 2003-03-10 alex # Port of the server to which the ngIRCd should connect. If you
106 10bb43c6 2003-03-10 alex # assign no port the ngIRCd waits for incoming connections.
107 a8aab6bf 2002-03-10 alex ;Port = 6666
109 5b333085 2003-01-04 alex # Own password for the connection. This password has to be configured
110 5b333085 2003-01-04 alex # as "PeerPassword" on the other server.
111 caa7049e 2002-11-19 alex ;MyPassword = MySecret
113 5b333085 2003-01-04 alex # Foreign password for this connection. This password has to be
114 5b333085 2003-01-04 alex # configured as "MyPassword" on the other server.
115 caa7049e 2002-11-19 alex ;PeerPassword = PeerSecret
117 10bb43c6 2003-03-10 alex # Group of this server (optional)
118 a8aab6bf 2002-03-10 alex ;Group = 123
121 10bb43c6 2003-03-10 alex # Pre-defined channels can be configured in [Channel] sections.
122 10bb43c6 2003-03-10 alex # Such channels are created by the server when starting up and even
123 10bb43c6 2003-03-10 alex # persist when there are no more members left.
124 10bb43c6 2003-03-10 alex # Persistent channels are marked with the mode 'P', which can be set
125 10bb43c6 2003-03-10 alex # and unset by IRC operators like other modes on the fly.
126 10bb43c6 2003-03-10 alex # There may be more than one [Channel] block.
128 5b333085 2003-01-04 alex # Name of the channel
129 c3aac8dd 2002-05-21 alex ;Name = #TheName
131 10bb43c6 2003-03-10 alex # Topic for this channel
132 5b333085 2003-01-04 alex ;Topic = a great topic
134 10bb43c6 2003-03-10 alex # Initial channel modes
135 c3aac8dd 2002-05-21 alex ;Modes = tn