projects/aports·blob master · refs

240 lines · 8.5 KiB

1# This is the full access CGI:IRC 0.5 config file
2# It will allow access to *all* servers and channels
3# See http://cgiirc.sourceforge.net/docs/config.php for help editing it.
4
5# -----
6# These are the default settings to show on the login form
7
8# default server(s) to connect to, more than one server can
9# be entered as a comma seperated list
10default_server = <% SET YOUR IRC SERVER HERE %>
11default_port = <% SET THE PORT OF YOUR IRC SERVER %>
12
13# default channel(s), again this can be a comma seperated list
14default_channel = #cgiirc
15
16# Realname to use (in /whois)
17default_name = CGI:IRC User
18
19# default nickname, a ? is replaced with a random number
20default_nick = CGI???
21
22# The default username to send, this will only be sent if
23# encoded_ip (below) is set to 1 or less and will have no affect
24# if the system is running identd.
25default_user = cgiirc
26
27# Default quit message
28#quit_message = CGI:IRC
29# Quit prefix added to EOF messages and other quits not from /quit
30#quit_prefix = CGI:IRC
31
32# -----
33# System setup options
34
35# You can change the default locations of the scripts with these
36# settings, generally they don't need to be changed
37script_nph = nph-irc.cgi
38script_form = client-perl.cgi
39script_login = irc.cgi
40
41# The path to images for the browser (a URL!)
42# In script aliased directories (cgi-bin) the default will *not* work,
43# you need to move the directory elsewhere and change this to something
44# like /images.
45image_path = /usr/share/webapps/cgiirc/images
46
47# The charset to send to IRC, to send anything other than UTF-8 you will
48# need the Encode perl module installed.
49# See perldoc Encode::Supported for a list of supported encodings.
50# If you see the wrong characters in CGI:IRC or with a normal IRC client
51# you probably need to change this or set it on the login form.
52# Note that this config file should be encoded in UTF8, regardless of this
53# setting.
54# Extended ASCII:
55#irc charset = iso-8859-1
56
57# The location to *append* before the location of the socket directory
58# (don't change this unless you understand it - and then think about it again).
59# Remember you will need to either edit client-perl.cgi or
60# client.c and recompile client.cgi if you change this
61
62# IF YOU CHANGE THIS AND HAVE ANY PROBLEMS TRY THE DEFAULT BEFORE ASKING FOR
63# HELP
64socket_prefix = /tmp/cgiirc-
65
66# Virtual Host - Bind to a specific IP address
67# (this must be a valid interface or IP alias on your system).
68#vhost = 0.0.0.0
69# For IPv6
70#vhost6 =
71
72# Prefer IPv6 addresses if both addresses resolve (default is IPv4).
73#prefer_v6 = 0 (XXX: This option does not currently work)
74
75# -----
76# Access related settings
77
78# encoded_ip, set to 3 to send real IP in realname and encoded in username
79# set to 2 to send hex encoded IP address in username
80# and in realname, set to 1 to send only in realname and 0 to
81# disable.
82encoded_ip = 2
83
84# If the ip_access_file option is set to the filename that
85# contains ipaccess information then CGI:IRC will check this file.
86# See ipaccess.example for more information, rename it to ipaccess
87# and uncomment the line below to enable.
88# NOTE: If the file does not exist, all clients are denied!
89#ip_access_file = ipaccess
90# If the ip_access_file option is set to a comma-separated list
91# of filenames, they are checked sequentially, as if they were
92# concatenated.
93#ip_access_file = ipaccess.deny,ipaccess.allow
94
95# The maximum number of users that can connect to this CGI:IRC script at once
96# Please note, sometimes CGI:IRC leaves files in the socket_prefix location, if
97# it is killed (kill -9) or maybe a bug - this option still counts those as users.
98#max_users = 20
99
100# Allow access to servers, ports and channels not set in the default
101# settings above and use access_channel, access_port and access_server below.
102allow_non_default = 1
103
104# This is regular experssion that sets what channels access should
105# be allowed to.
106access_channel = .*
107
108# This is regular experssion that sets what servers access should
109# be allowed to.
110access_server = .*
111
112# This is regular experssion that sets what ports access should
113# be allowed to.
114access_port = .*
115
116# A list of commands to allow and deny access to, this is a space
117# seperated list of commands to allow access to or if prefixed
118# with an ! commands to disallow access to.
119# Eg to only allow access to, msg, me, whois, join, nick
120# = msg me whois join nick !
121# Note the ! on the end, it disallows all other commands
122
123# It is recommened that you disable quote if you are limiting
124# access to channels.
125#access_command = !quote
126access_command =
127
128# Session timeout (timeout after this many seconds of inactivity).
129# 18000 is 5 hours
130session_timeout = 18000
131
132# Admin password (used for /ctcp kill)
133# Remember this is a crypt of the password - not the actual password.
134# You can generate this by running (at a Unix shell prompt):
135# perl -le'print crypt(shift,$$)' password
136# where password is the password to generate a crypt for.
137#admin password =
138
139# If your server is password protected and you wish to provide the password in
140# the script rather than get the user to enter the password then set this
141# option to the password (The user can still override this with a password on
142# the login form).
143#server_password =
144
145# Send extra information (e.g. proxy headers) on ctcp USERINFO.
146#extra_userinfo = 1
147
148# If the IRC server has been configured to allow CGI:IRC host spoofing (web irc
149# spoofing), then set this to the password to use.
150#webirc_password =
151
152# If the irc server you are connecting to accepts hostnames encoded into
153# passwords (old style CGI:IRC host spoofing) and it has been setup for your
154# host uncomment the following line.
155#realhost_as_password = 1
156
157# Check clients connecting against a DNSBL (deny access if their IP address is in
158# it), seperate with spaces to check more than one.
159#dnsbl = opm.blitzed.org
160
161# Redirect to a different URL (eg. custom login form) instead of the default.
162#form_redirect = http://cgiirc.sourceforge.net/docs/custom.php
163
164# List of URLs (seperated with ,) which this copy of CGI:IRC should
165# balance requests over. All the URLs should be within the domain set for
166# javascript_domain below and should point to the directory which the
167# CGI:IRC install is in without a trailing /.
168#balance_servers = http://a.cgiirc.org, http://foo.cgiirc.org/cgi-bin/cgiirc
169
170# Set JavaScript document.domain.
171#javascript_domain = cgiirc.org
172
173# Set the login secret (used to make it slightly harder to abuse CGI:IRC by
174# opening lots of connections to it). This should be a hard to guess sequence
175# of characters (you never need to type it in). If balance_servers is used this
176# should be set to the same value on all servers. This requires the Digest::MD5
177# module.
178#login secret =
179
180# -----
181# Appearence settings
182
183# The options to show on the basic and advanced login forms.
184# Simply a space seperated list of the fields to display.
185#login basic = Nickname, Channel
186#login advanced = Nickname, Realname, Channel, Server, Password, Format, Character set
187
188# The default format to use
189format = default
190
191# These options control where output goes. Parameters are comma seperated
192# and are the types (e.g. the names used in the format files), only the
193# first two words are matched.
194
195# Do not output joins, parts or quits.
196#output none = join, part, quit
197# Hide a lot of information that is shown at connect time
198#output none = raw 439, reply welcome, reply yourhost, reply created, reply myinfo, reply protoctl, raw 251, raw 252, raw 254, raw 255, raw 265, raw 266, looking up, connecting, reply motd start, reply motd end, reply names
199
200# Show whois in the active window
201#output active = reply whois
202
203# Show the names output in the Status window
204#output status = reply names
205
206# Perform these commands (seperated with) ; on connect.
207#perform =
208
209# Remove almost all colour from the output
210#removecolour = 0
211
212# By default CGI:IRC shorterns the text inside links to 120 characters to work
213# around browser bugs. This changes the length text is shortened to
214#linkshorten = 120
215
216# If set this disables the input of %C, %B, etc so that the user
217# cannot enter colours, etc
218#disable_format_input = 1
219
220# ----
221# Interface settings
222# These control the options for the user - the user can change these via the
223# options dialog.
224# Uncommenting the options below will change from the default value.
225
226# Enable Timestamps for all text
227#interface timestamp = 1
228# Convert :-) and so on into smilie images
229#interface smilies = 1
230# Default font to use
231#interface font = monospace
232# Show users nickname next to text entry area
233#interface shownick = 1
234# Show long scrollback (uses more memory)
235#interface scrollback = 1
236# Enable activity sounds by default
237#interface actsound = 1
238# Enable join sounds by default
239#interface joinsound = 1
240