X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=config.example.js;h=1314152faca35ffd7e098867d91271a7372bcfea;hb=ac915057a143b0e4c44f7a582457597a4f0dc188;hp=3a413a3c35eac1756c56a04e52cc8b04b5425579;hpb=8ae445ce01e21a4de50bd1f446f53923a71160f3;p=KiwiIRC.git diff --git a/config.example.js b/config.example.js index 3a413a3..1314152 100644 --- a/config.example.js +++ b/config.example.js @@ -33,6 +33,11 @@ conf.servers.push({ // ssl_cert: "cert.pem" //}); +// Network interface for outgoing connections +conf.outgoing_address = { + IPv4: '0.0.0.0' + //IPv6: '::' +}; // Do we want to enable the built in Identd server? @@ -60,6 +65,21 @@ conf.max_client_conns = 5; // - Kiwi is running in restricted server mode. conf.max_server_conns = 0; +/* +* Default encoding to be used by the server +* As specified and limited to iconv-lite library support. +*/ +conf.default_encoding = 'utf8'; + + +/* +* Default GECOS (real name) for IRC connections +* %n will be replaced with the users nick +* %h will be replaced with the users hostname +*/ +//conf.default_gecos = 'Web IRC Client'; + + /* * Client side plugins @@ -72,11 +92,6 @@ conf.client_plugins = [ -// Enabled CAP extensions (See ENTER URL TO CAP INFO HERE PLS) -conf.cap_options = []; - - - // Directory to find the server modules conf.module_dir = "../server_modules/"; @@ -107,7 +122,7 @@ conf.reject_unauthorised_certificates = false; /* * Reverse proxy settings * Reverse proxies that have been reported to work can be found at: - * http://github.com/prawnsalad/KiwiIRC/wiki/Running-behind-a-proxy + * https://kiwiirc.com/docs/installing/proxies */ // Whitelisted HTTP proxies in CIDR format @@ -120,16 +135,32 @@ 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; -// Enabled transports for the browser to use -conf.transports = [ - "websocket", - "flashsocket", - "htmlfile", - "xhr-polling", - "jsonp-polling" +// 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; @@ -143,15 +174,37 @@ conf.client = { port: 6697, ssl: true, channel: '#kiwiirc', - nick: 'kiwi_?' + channel_key: '', + nick: 'kiwi_?', + settings: { + theme: 'relaxed', + channel_list_style: 'tabs', + scrollback: 250, + show_joins_parts: true, + show_timestamps: false, + use_24_hour_timestamps: true, + mute_sounds: false, + show_emoticons: true, + count_all_activity: true + }, + window_title: 'Kiwi IRC' }; +// List of themes available for the user to choose from +conf.client_themes = [ + 'relaxed', + 'mini', + 'cli', + 'basic' +]; + // 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; //conf.restrict_server_channel = "#kiwiirc"; +//conf.restrict_server_channel_key = ""; //conf.restrict_server_password = ""; //conf.restrict_server_nick = "kiwi_"; @@ -159,6 +212,6 @@ conf.client = { /* - * Do not ammend the below lines unless you understand the changes! + * Do not amend the below lines unless you understand the changes! */ module.exports.production = conf;