Advertisement
Guest User

Untitled

a guest
Apr 6th, 2016
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.54 KB | None | 0 0
  1. var conf = {};
  2.  
  3. // Run the Kiwi server under a different user/group
  4. conf.user = "";
  5. conf.group = "";
  6.  
  7.  
  8. // Log file location
  9. conf.log = "kiwi.log";
  10.  
  11.  
  12.  
  13. /*
  14. * Server listen blocks
  15. */
  16.  
  17. // Do not edit this line!
  18. conf.servers = [];
  19.  
  20. // Example server block
  21. conf.servers.push({
  22. port: 7779,
  23. address: "0.0.0.0"
  24. });
  25.  
  26. // Example SSL server block
  27. //conf.servers.push({
  28. // port: 7777,
  29. // address: "0.0.0.0",
  30. //
  31. // ssl: true,
  32. // ssl_key: "server.key",
  33. // ssl_cert: "cert.pem"
  34. //});
  35.  
  36. // Network interface for outgoing connections
  37. conf.outgoing_address = {
  38. IPv4: '0.0.0.0'
  39. //IPv6: '::'
  40. };
  41.  
  42.  
  43. // Do we want to enable the built in Identd server?
  44. conf.identd = {
  45. enabled: false,
  46. port: 113,
  47. address: "0.0.0.0"
  48. };
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55. // Where the client files are
  56. conf.public_http = "/home/ircd/KiwiIRC/client/";
  57.  
  58. // Transports available to the client.
  59. // Behind an Apache reverse proxy? Uncomment the below - Apache does not support websockets!
  60. //conf.client_transports = ['polling'];
  61.  
  62. // Max connections per connection. 0 to disable
  63. conf.max_client_conns = 50;
  64.  
  65. // Max connections per server. 0 to disable.
  66. // Setting is ignored if:
  67. // - There is a WEBIRC password configured for the server,
  68. // - Kiwi is configured to send the client's ip as a username for the server, or
  69. // - Kiwi is running in restricted server mode.
  70. conf.max_server_conns = 0;
  71.  
  72. /*
  73. * Default encoding to be used by the server
  74. * As specified and limited to iconv-lite library support.
  75. */
  76. conf.default_encoding = 'utf8';
  77.  
  78.  
  79. /*
  80. * Default GECOS (real name) for IRC connections
  81. * %n will be replaced with the users nick
  82. * %h will be replaced with the users hostname
  83. */
  84. conf.default_gecos = '%n is using a Web IRC client';
  85.  
  86.  
  87. /*
  88. * Default ident / username for IRC connections
  89. * %n will be replaced with the users nick
  90. * %h will be replaced with the users hostname
  91. * %i will be replaced with a hexed value of the users IP
  92. */
  93. conf.default_ident = '%i';
  94.  
  95.  
  96. /*
  97. * Default quit message
  98. * If a browser gets disconnected without sending a QUIT command, this
  99. * message will be used instead.
  100. */
  101. conf.quit_message = 'http://www.kiwiirc.com/ - A hand-crafted IRC client';
  102.  
  103.  
  104. /*
  105. * Auto reconnect if the IRC server disconnects a kiwi user
  106. * Hundreds of connected users getting disconnected then reconnecting at once may see
  107. * high CPU usage causing further dropouts. Set to false if under high usage.
  108. */
  109. conf.ircd_reconnect = true;
  110.  
  111.  
  112. /*
  113. * Client side plugins
  114. * Array of URLs that will be loaded into the browser when the client first loads up
  115. * See http://github.com/prawnsalad/KiwiIRC/wiki/Client-plugins
  116. */
  117. conf.client_plugins = [
  118. // "http://server.com/kiwi/plugins/myplugin.html"
  119. ];
  120.  
  121.  
  122.  
  123.  
  124. // Directory to find the server modules
  125. conf.module_dir = "../server_modules/";
  126.  
  127. // Which modules to load
  128. conf.modules = [
  129. // Open a TCP port to control the Kiwi server (default port 8888)
  130. // "control",
  131.  
  132. // Automatically reload CSS files when a theme changes
  133. // "client_file_watcher",
  134. ];
  135.  
  136.  
  137.  
  138.  
  139. // WebIRC password enabled for this server
  140. conf.webirc_pass = "";
  141.  
  142. // Use the above *OR* the below webirc_pass option
  143.  
  144. // Multiple WebIRC passwords may be used for multiple servers
  145. //conf.webirc_pass = {
  146. // "irc.network.com": "configured_webirc_password",
  147. // "127.0.0.1": "foobar"
  148. //};
  149.  
  150. conf.webirc_pass = {
  151. "freemind.ovh": "mdpwebirc",
  152. "127.0.0.1": "mdpwebirc"
  153. };
  154.  
  155. // Whether to verify IRC servers' SSL certificates against built-in well-known certificate authorities
  156. conf.reject_unauthorised_certificates = false;
  157.  
  158.  
  159.  
  160. /*
  161. * Reverse proxy settings
  162. * Reverse proxies that have been reported to work can be found at:
  163. * https://kiwiirc.com/docs/installing/proxies
  164. */
  165.  
  166. // Whitelisted HTTP proxies in CIDR format
  167. conf.http_proxies = ["127.0.0.1/32"];
  168.  
  169. // Header that contains the real-ip from the HTTP proxy
  170. conf.http_proxy_ip_header = "x-forwarded-for";
  171.  
  172. // Base HTTP path to the KIWI IRC client (eg. /kiwi)
  173. conf.http_base_path = "/kiwi";
  174.  
  175.  
  176. /*
  177. * SOCKS (version 5) proxy settings
  178. * This feature is only available on node 0.10.0 and above.
  179. * Do not enable it if you're running 0.8 or below or Bad Things will happen.
  180. */
  181. conf.socks_proxy = {};
  182.  
  183. // Enable proxying outbound connections through a SOCKS proxy
  184. conf.socks_proxy.enabled = false;
  185.  
  186. // Proxy *all* outbound connections through a SOCKS proxy
  187. conf.socks_proxy.all = false;
  188.  
  189. // Use SOCKS proxy for these hosts only (if conf.sock_proxy.all === false)
  190. conf.socks_proxy.proxy_hosts = [
  191. "irc.example.com"
  192. ];
  193.  
  194. // Host and port for the SOCKS proxy
  195. conf.socks_proxy.address = '127.0.0.1';
  196. conf.socks_proxy.port = 1080;
  197.  
  198. // Username and password for the SOCKS proxy
  199. // Set user to null to disable password authentication
  200. conf.socks_proxy.user = null;
  201. conf.socks_proxy.pass = null;
  202.  
  203.  
  204. // Default settings for the client. These may be changed in the browser
  205. conf.client = {
  206. server: 'irc.freemind.ovh',
  207. port: 6667,
  208. ssl: false,
  209. channel: '#freemind',
  210. channel_key: '',
  211. nick: 'kiwi_?',
  212. settings: {
  213. theme: 'relaxed',
  214. text_theme: 'default',
  215. channel_list_style: 'tabs',
  216. scrollback: 250,
  217. show_joins_parts: true,
  218. show_timestamps: false,
  219. use_24_hour_timestamps: true,
  220. mute_sounds: false,
  221. show_emoticons: true,
  222. ignore_new_queries: false,
  223. count_all_activity: false,
  224. show_autocomplete_slideout: true,
  225. locale: null // null = use the browser locale settings
  226. },
  227. window_title: 'Kiwi IRC'
  228. };
  229.  
  230. // List of themes available for the user to choose from
  231. conf.client_themes = [
  232. 'relaxed',
  233. 'mini',
  234. 'cli',
  235. 'basic'
  236. ];
  237.  
  238.  
  239. // If set, the client may only connect to this 1 IRC server
  240. //conf.restrict_server = "irc.kiwiirc.com";
  241. //conf.restrict_server_port = 6667;
  242. //conf.restrict_server_ssl = false;
  243. //conf.restrict_server_password = "";
  244.  
  245.  
  246. /*
  247. * If running multiple kiwi servers you may specify them here.
  248. * Note: All kiwi servers must have the same conf.http_base_path config option.
  249. *
  250. * To force the client to connect to one other kiwi server, use:
  251. * conf.client.kiwi_server = 'https://kiwi-server2.com';
  252. *
  253. * To force the client to connect to a random kiwi server from a list, use:
  254. * conf.client.kiwi_server = ['https://kiwi-server1.com', 'https://kiwi-server2.com'];
  255. */
  256. //conf.client.kiwi_server = '';
  257.  
  258.  
  259.  
  260. /*
  261. * Do not amend the below lines unless you understand the changes!
  262. */
  263. module.exports.production = conf;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement