Advertisement
Guest User

Untitled

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