Advertisement
Guest User

Untitled

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