Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
414
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.53 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: 7778,
  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 = "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 = 5;
  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.  
  146.  
  147. conf.webirc_pass = {
  148. "ssl.chathispano.com": "",
  149. // "127.0.0.1": "foobar"
  150. };
  151.  
  152.  
  153. //conf.webirc_pass = {
  154. // "irc.network.com": "configured_webirc_password",
  155. // "127.0.0.1": "foobar"
  156. //};
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163. // Whether to verify IRC servers' SSL certificates against built-in well-known certificate authorities
  164. conf.reject_unauthorised_certificates = false;
  165.  
  166.  
  167.  
  168. /*
  169. * Reverse proxy settings
  170. * Reverse proxies that have been reported to work can be found at:
  171. * https://kiwiirc.com/docs/installing/proxies
  172. */
  173.  
  174. // Whitelisted HTTP proxies in CIDR format
  175. conf.http_proxies = ["127.0.0.1/32"];
  176.  
  177. // Header that contains the real-ip from the HTTP proxy
  178. conf.http_proxy_ip_header = "x-forwarded-for";
  179.  
  180. // Base HTTP path to the KIWI IRC client (eg. /kiwi)
  181. conf.http_base_path = "/kiwi";
  182.  
  183.  
  184. /*
  185. * SOCKS (version 5) proxy settings
  186. * This feature is only available on node 0.10.0 and above.
  187. * Do not enable it if you're running 0.8 or below or Bad Things will happen.
  188. */
  189. conf.socks_proxy = {};
  190.  
  191. // Enable proxying outbound connections through a SOCKS proxy
  192. conf.socks_proxy.enabled = false;
  193.  
  194. // Proxy *all* outbound connections through a SOCKS proxy
  195. conf.socks_proxy.all = false;
  196.  
  197. // Use SOCKS proxy for these hosts only (if conf.sock_proxy.all === false)
  198. conf.socks_proxy.proxy_hosts = [
  199. "irc.example.com"
  200. ];
  201.  
  202. // Host and port for the SOCKS proxy
  203. conf.socks_proxy.address = '127.0.0.1';
  204. conf.socks_proxy.port = 1080;
  205.  
  206. // Username and password for the SOCKS proxy
  207. // Set user to null to disable password authentication
  208. conf.socks_proxy.user = null;
  209. conf.socks_proxy.pass = null;
  210.  
  211.  
  212. // Default settings for the client. These may be changed in the browser
  213. conf.client = {
  214. server: 'ssl.chathispano.com',
  215. port: 6697,
  216. ssl: true,
  217. channel: '#testroom',
  218. channel_key: '',
  219. nick: 'kiwi_?',
  220. settings: {
  221. theme: 'relaxed',
  222. text_theme: 'default',
  223. channel_list_style: 'tabs',
  224. scrollback: 250,
  225. show_joins_parts: true,
  226. show_timestamps: false,
  227. use_24_hour_timestamps: true,
  228. mute_sounds: false,
  229. show_emoticons: true,
  230. ignore_new_queries: false,
  231. count_all_activity: false,
  232. show_autocomplete_slideout: true,
  233. locale: null // null = use the browser locale settings
  234. },
  235. window_title: 'Kiwi IRC'
  236. };
  237.  
  238. // List of themes available for the user to choose from
  239. conf.client_themes = [
  240. 'relaxed',
  241. 'mini',
  242. 'cli',
  243. 'basic'
  244. ];
  245.  
  246.  
  247. // If set, the client may only connect to this 1 IRC server
  248. //conf.restrict_server = "irc.kiwiirc.com";
  249. //conf.restrict_server_port = 6667;
  250. //conf.restrict_server_ssl = false;
  251. //conf.restrict_server_password = "";
  252.  
  253.  
  254. /*
  255. * If running multiple kiwi servers you may specify them here.
  256. * Note: All kiwi servers must have the same conf.http_base_path config option.
  257. *
  258. * To force the client to connect to one other kiwi server, use:
  259. * conf.client.kiwi_server = 'https://kiwi-server2.com';
  260. *
  261. * To force the client to connect to a random kiwi server from a list, use:
  262. * conf.client.kiwi_server = ['https://kiwi-server1.com', 'https://kiwi-server2.com'];
  263. */
  264. //conf.client.kiwi_server = '';
  265.  
  266.  
  267.  
  268. /*
  269. * Do not amend the below lines unless you understand the changes!
  270. */
  271. module.exports.production = conf;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement