X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;ds=inline;f=config.example.js;h=9732497638973b4b6108ed5a35681ce75ce3b884;hb=d4dd11546d1af804d30510f173ff1ffa80718d07;hp=e17c8f39498e6865ee1a76b13da1f9ff6702fb91;hpb=8527a12aa6a2934f09c8453f37933ff939e210dd;p=KiwiIRC.git diff --git a/config.example.js b/config.example.js index e17c8f3..9732497 100644 --- a/config.example.js +++ b/config.example.js @@ -35,6 +35,15 @@ conf.servers.push({ +// Do we want to enable the built in Identd server? +conf.identd = { + enabled: false, + port: 113, + address: "0.0.0.0" +}; + + + @@ -44,6 +53,13 @@ conf.public_http = "client/"; // Max connections per connection. 0 to disable conf.max_client_conns = 5; +// Max connections per server. 0 to disable. +// Setting is ignored if: +// - There is a WEBIRC password configured for the server, +// - Kiwi is configured to send the client's ip as a username for the server, or +// - Kiwi is running in restricted server mode. +conf.max_server_conns = 0; + /* * Client side plugins @@ -63,7 +79,7 @@ conf.cap_options = []; // Directory to find the server modules -conf.module_dir = "./kiwi_modules/"; +conf.module_dir = "../server_modules/"; // Which modules to load conf.modules = []; @@ -79,8 +95,8 @@ conf.webirc_pass = { // Some IRCDs require the clients IP via the username/ident conf.ip_as_username = [ - "irc.network.com", - "127.0.0.1" + //"irc.network.com", + //"127.0.0.1" ]; // Whether to verify IRC servers' SSL certificates against built-in well-known certificate authorities @@ -93,6 +109,7 @@ conf.reject_unauthorised_certificates = false; * Reverse proxies that have been reported to work can be found at: * http://github.com/prawnsalad/KiwiIRC/wiki/Running-behind-a-proxy */ + // Whitelisted HTTP proxies in CIDR format conf.http_proxies = ["127.0.0.1/32"]; @@ -103,6 +120,33 @@ conf.http_proxy_ip_header = "x-forwarded-for"; conf.http_base_path = "/kiwi"; +/* + * SOCKS (version 5) proxy settings + * This feature is only available on node 0.10.0 and above. + * Do not enable it if you're running 0.8 or below or Bad Things will happen. + */ +conf.socks_proxy = {}; + +// Enable proxying outbound connections through a SOCKS proxy +conf.socks_proxy.enabled = false; + +// Proxy *all* outbound connections through a SOCKS proxy +conf.socks_proxy.all = false; + +// Use SOCKS proxy for these hosts only (if conf.sock_proxy.all === false) +conf.socks_proxy.proxy_hosts = [ + "irc.example.com" +]; + +// Host and port for the SOCKS proxy +conf.socks_proxy.address = '127.0.0.1'; +conf.socks_proxy.port = 1080; + +// Username and password for the SOCKS proxy +// Set user to null to disable password authentication +conf.socks_proxy.user = null; +conf.socks_proxy.pass = null; + // Enabled transports for the browser to use conf.transports = [ @@ -120,7 +164,25 @@ conf.transports = [ conf.quit_message = "http://www.kiwiirc.com/ - A hand-crafted IRC client"; -// If not empty, the client may only connect to this 1 IRC server +// Default settings for the client. These may be changed in the browser +conf.client = { + server: 'irc.kiwiirc.com', + port: 6697, + ssl: true, + channel: '#kiwiirc', + nick: 'kiwi_?', + settings: { + theme: 'relaxed', + channel_list_style: 'tabs', + scrollback: 250, + show_joins_parts: true, + show_timestamps: false, + mute_sounds: false + } +}; + + +// If set, the client may only connect to this 1 IRC server //conf.restrict_server = "irc.kiwiirc.com"; //conf.restrict_server_port = 6667; //conf.restrict_server_ssl = false; @@ -129,7 +191,9 @@ conf.quit_message = "http://www.kiwiirc.com/ - A hand-crafted IRC client"; //conf.restrict_server_nick = "kiwi_"; + + /* * Do not ammend the below lines unless you understand the changes! */ -module.exports.production = conf; \ No newline at end of file +module.exports.production = conf;