X-Git-Url: https://jfr.im/git/irc/quakenet/qwebirc.git/blobdiff_plain/de4380a1f95e98827fe517e9f772e3e41ae3eec3..fbe5af7709ff70c49b70817793fc39664ddca96b:/config.py.example diff --git a/config.py.example b/config.py.example index e8c9a7b..267d024 100644 --- a/config.py.example +++ b/config.py.example @@ -8,6 +8,9 @@ # both!) # If in doubt always re-compile and restart. +# The following line is required, don't remove it! +from qwebirc.config_options import * + # IRC OPTIONS # --------------------------------------------------------------------- # @@ -22,9 +25,13 @@ IRCSERVER, IRCPORT = "irc.myserver.com", 6667 REALNAME = "http://moo.com/" # OPTION: IDENT -# ident to use on irc, set to the literal value None to use a -# hexadecimal version of the IP address, e.g.: -# IDENT = None +# ident to use on irc, possible values include: +# - a string, e.g. IDENT = "webchat" +# - the literal value IDENT_HEX, this will set the ident to the +# a hexadecimal version of the users IP address, e.g +# IDENT = IDENT_HEX +# - the literal value IDENT_NICKNAME, this will use the users +# supplied nickname as their ident. IDENT = "webchat" # OPTION: WEBIRC_MODE @@ -32,7 +39,7 @@ IDENT = "webchat" # browser will be sent to IRC. # # Possible values include: -# - webirc +# - the string "webirc", i.e. WEBIRC_MODE = "webirc" # Use WEBIRC type blocks, with a server configuration of # the following style: # @@ -44,12 +51,12 @@ IDENT = "webchat" # # Remember to set the WEBIRC_PASSWORD value to be the # same as . -# - cgiirc +# - the string "cgiirc", i.e. WEBIRC_MODE = "cgiirc" # old style CGIIRC command, set CGIIRC_STRING to be the # command used to set the ip/hostname, and set # WEBIRC_PASSWORD to be the password used in the server's # configuration file. -# - None (the literal value) +# - the literal value None, i.e. WEBIRC_MODE = None # Send the IP and hostname in the realname field, overrides # the REALNAME option. WEBIRC_MODE = None @@ -111,6 +118,20 @@ FEEDBACK_SMTP_HOST, FEEDBACK_SMTP_PORT = "127.0.0.1", 25 # http://instance/adminengine ADMIN_ENGINE_HOSTS = ["127.0.0.1"] +# PROXY OPTIONS +# --------------------------------------------------------------------- +# +# OPTION: FORWARDED_FOR_HEADER +# If you're using a proxy that passes through a forwarded-for +# header set this option to the header name, also set +# FORWARDED_FOR_IPS. +#FORWARDED_FOR_HEADER="x-forwarded-for" + +# OPTION: FORWARDED_FOR_IPS +# This option specifies the IP addresses that forwarded-for +# headers will be accepted from. +#FORWARDED_FOR_IPS=["127.0.0.1"] + # EXECUTION OPTIONS # --------------------------------------------------------------------- # @@ -119,6 +140,12 @@ ADMIN_ENGINE_HOSTS = ["127.0.0.1"] # with them, see run.py --help for a list of options. #ARGS = "-n -p 3989" +# OPTION: SYSLOG_ADDR (optional) +# Used in conjunction with util/syslog.py and -s option. +# This option specifies the address and port that syslog +# datagrams will be sent to. +#SYSLOG_ADDR = "127.0.0.1", 514 + # TUNEABLE VALUES # --------------------------------------------------------------------- # @@ -170,6 +197,20 @@ HTTP_AJAX_REQUEST_TIMEOUT = 30 # that haven't started/completed an HTTP request. HTTP_REQUEST_TIMEOUT = 5 +# OPTION: STATIC_BASE_URL +# This value is used to build the URL for all static HTTP +# requests. +# You'd find this useful if you're running multiple qwebirc +# instances on the same host. +STATIC_BASE_URL = "" + +# OPTION: DYNAMIC_BASE_URL +# This value is used to build the URL for all dynamic HTTP +# requests. +# You'd find this useful if you're running multiple qwebirc +# instances on the same host. +DYNAMIC_BASE_URL = "" + # QUAKENET SPECIFIC VALUES # --------------------------------------------------------------------- #