]> jfr.im git - irc/quakenet/qwebirc.git/blame - config.py.example
Add pidfile option to run.py.
[irc/quakenet/qwebirc.git] / config.py.example
CommitLineData
b8357cf5
CP
1# qwebirc configuration file
2#
3# This a Python program that is imported, so feel free to use any
4# Python here!
5#
6# Note that some changes to this configuration file require re-running
7# compile.py and others require restarting qwebirc (and some require
8# both!)
9# If in doubt always re-compile and restart.
1435dd92 10
930be88a
CP
11# The following line is required, don't remove it!
12from qwebirc.config_options import *
13
b8357cf5
CP
14# IRC OPTIONS
15# ---------------------------------------------------------------------
16#
17# OPTION: IRCSERVER
18# Hostname (or IP address) of IRC server to connect to.
19# OPTION: IRCPORT
20# Port of IRC server to connect to.
21IRCSERVER, IRCPORT = "irc.myserver.com", 6667
22
23# OPTION: REALNAME
24# The realname field of IRC clients will be set to this value.
4094890f 25REALNAME = "http://moo.com/"
9a2bf266 26
b8357cf5 27# OPTION: IDENT
930be88a
CP
28# ident to use on irc, possible values include:
29# - a string, e.g. IDENT = "webchat"
30# - the literal value IDENT_HEX, this will set the ident to the
31# a hexadecimal version of the users IP address, e.g
dd21c156 32# IDENT = IDENT_HEX
930be88a
CP
33# - the literal value IDENT_NICKNAME, this will use the users
34# supplied nickname as their ident.
b8357cf5
CP
35IDENT = "webchat"
36
37# OPTION: WEBIRC_MODE
de4380a1
CP
38# This option controls how the IP/hostname of the connecting
39# browser will be sent to IRC.
b8357cf5
CP
40#
41# Possible values include:
efd064c5
CP
42# - webirc
43# Use WEBIRC type blocks, with a server configuration of
44# the following style:
45#
46# cgiirc {
47# type webirc;
48# hostname <qwebirc's ip address>;
49# password <password>;
50# };
51#
52# Remember to set the WEBIRC_PASSWORD value to be the
53# same as <password>.
b8357cf5
CP
54# - cgiirc
55# old style CGIIRC command, set CGIIRC_STRING to be the
56# command used to set the ip/hostname, and set
57# WEBIRC_PASSWORD to be the password used in the server's
58# configuration file.
59# - None (the literal value)
60# Send the IP and hostname in the realname field, overrides
61# the REALNAME option.
62WEBIRC_MODE = None
63
64# OPTION: WEBIRC_PASSWORD
65# Used for WEBIRC_MODE webirc and cgiirc, see WEBIRC_MODE
66# option documentation.
67#WEBIRC_PASSWORD = "fish"
68
69# OPTION: CGIIRC_STRING
70# Command sent to IRC server in for cgiirc WEBIRC_MODE.
71# See WEBIRC_MODE option documentation.
72#CGIIRC_STRING = "CGIIRC"
73
74# UI OPTIONS
75# ---------------------------------------------------------------------
76#
77# OPTION: BASE_URL
de4380a1
CP
78# URL that this qwebirc instance will be available at, add the
79# port number if your instance runs on a port other than 80.
2dfab0e1
CP
80BASE_URL = "http://foo.foo.org/"
81
b8357cf5
CP
82# OPTION: NETWORK_NAME
83# The name of your IRC network, displayed throughout the
84# application.
85NETWORK_NAME = "FooNet"
86
87# OPTION: APP_TITLE
88# The title of the application in the web browser.
89APP_TITLE = NETWORK_NAME + " Web IRC"
90
91
92# FEEDBACK OPTIONS
93# ---------------------------------------------------------------------
94#
95# These options control the feedback module, which allows users to
96# send feedback directly from qwebirc (via email).
97#
98# OPTION: FEEDBACK_FROM
99# E-mail address that feedback will originate from.
391f51ff 100FEEDBACK_FROM = "moo@moo.com"
b8357cf5
CP
101
102# OPTION: FEEDBACK_TO:
103# E-mail address that feedback will be sent to.
391f51ff 104FEEDBACK_TO = "moo@moo.com"
b8357cf5
CP
105
106# OPTION: FEEDBACK_SMTP_HOST
107# Hostname/IP address of SMTP server feedback will be sent
108# through.
109# OPTION: FEEDBACK_SMTP_PORT
110# Port of SMTP server feedback will be sent through.
111FEEDBACK_SMTP_HOST, FEEDBACK_SMTP_PORT = "127.0.0.1", 25
112
113# ADMIN ENGINE OPTIONS
114# ---------------------------------------------------------------------
115#
116# OPTION: ADMIN_ENGINE_HOSTS:
117# List of IP addresses to allow onto the admin engine at
118# http://instance/adminengine
85f01e3f 119ADMIN_ENGINE_HOSTS = ["127.0.0.1"]
9a2bf266 120
b8357cf5
CP
121# EXECUTION OPTIONS
122# ---------------------------------------------------------------------
123#
124# OPTION: ARGS (optional)
125# These arguments will be used as if qwebirc was run directly
126# with them, see run.py --help for a list of options.
127#ARGS = "-n -p 3989"
128
129# TUNEABLE VALUES
130# ---------------------------------------------------------------------
131#
132# You probably don't want to fiddle with these unless you really know
133# what you're doing...
134
135# OPTION: UPDATE_FREQ
136# Maximum rate (in seconds) at which updates will be propagated
137# to clients
138UPDATE_FREQ = 0.5
139
140# OPTION: MAXBUFLEN
141# Maximum client AJAX recieve buffer size (in bytes), if this
142# buffer size is exceeded then the client will be disconnected.
de4380a1
CP
143# This value should match the client sendq size in your ircd's
144# configuration.
145MAXBUFLEN = 100000
b8357cf5
CP
146
147# OPTION: MAXSUBSCRIPTIONS
148# Maximum amount of 'subscriptions' to a specific AJAX channel,
149# i.e. an IRC connection.
150# In theory with a value greater than one you can connect more
151# than one web IRC client to the same IRC connection, ala
152# irssi-proxy.
153MAXSUBSCRIPTIONS = 1
154
155# OPTION: MAXLINELEN
156# If the client sends a line greater than MAXLINELEN (in bytes)
157# then they will be disconnected.
de4380a1 158# Note that IRC normally silently drops messages >=512 bytes.
b8357cf5 159MAXLINELEN = 600
348574ee 160
b8357cf5
CP
161# OPTION: DNS_TIMEOUT
162# DNS requests that do not respond within DNS_TIMEOUT seconds
00cc5cd5 163# will be cancelled.
28c4ad01 164DNS_TIMEOUT = 5
b5c84380 165
b8357cf5
CP
166# OPTION: HTTP_AJAX_REQUEST_TIMEOUT
167# Connections made to the AJAX engine are closed after this
168# this many seconds.
169# Note that this value is intimately linked with the client
170# AJAX code at this time, changing it will result in bad
171# things happening.
172HTTP_AJAX_REQUEST_TIMEOUT = 30
173
174# OPTION: HTTP_REQUEST_TIMEOUT
175# Connections made to everything but the AJAX engine will
176# be closed after this many seconds, including connections
177# that haven't started/completed an HTTP request.
178HTTP_REQUEST_TIMEOUT = 5
b5c84380 179
b8357cf5
CP
180# QUAKENET SPECIFIC VALUES
181# ---------------------------------------------------------------------
182#
183# These values are of no interest if you're not QuakeNet.
184# At present they still need to be set, this will change soon.
185#
186# OPTION: HMACKEY
187# Shared key to use with hmac WEBIRC_MODE.
9a2bf266 188HMACKEY = "mrmoo"
b8357cf5
CP
189
190# OPTION: HMACTEMPORAL
191# Divisor used for modulo HMAC timestamp generation.
9a2bf266 192HMACTEMPORAL = 30
b5c84380 193
b8357cf5
CP
194# OPTION: AUTHGATEDOMAIN
195# Domain accepted inside authgate tickets.
9a2bf266 196AUTHGATEDOMAIN = "webchat_test"
b8357cf5
CP
197
198# OPTION: QTICKETKEY
199# Key shared with the authgate that is used to decrypt
200# qtickets.
9a2bf266 201QTICKETKEY = "boo"
b8357cf5
CP
202
203# OPTION: AUTH_SERVICE
204# Service that auth commands are sent to. Also used to check
205# responses from said service.
348574ee 206AUTH_SERVICE = "Q!TheQBot@CServe.quakenet.org"
b8357cf5
CP
207
208# OPTION: AUTH_OK_REGEX
209# JavaScript regular expression that should match when
210# AUTH_SERVICE has returned an acceptable response to
211# authentication.
348574ee 212AUTH_OK_REGEX = "^You are now logged in as [^ ]+\\.$"
b8357cf5
CP
213
214# OPTION: AUTHGATEPROVIDER
215# Authgate module to use, normally imported directly.
216# dummyauthgate does nothing.
217import dummyauthgate as AUTHGATEPROVIDER