Advertisement
Guest User

Untitled

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