Advertisement
Guest User

Untitled

a guest
Apr 21st, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.76 KB | None | 0 0
  1. var conf = {};
  2.  
  3. // Exécutez le serveur Kiwi sous un différent user/group
  4. conf.user = "";
  5. conf.group = "";
  6.  
  7. // Log
  8. conf.log = "kiwi.log";
  9.  
  10. // Ne pas modifier cette ligne!
  11. conf.servers = [];
  12.  
  13. conf.servers.push({
  14. port: 7778,
  15. address: "0.0.0.0"
  16. });
  17.  
  18. // Example SSL server block
  19. //conf.servers.push({
  20. // port: 7777,
  21. // address: "0.0.0.0",
  22. //
  23. // ssl: true,
  24. // ssl_key: "server.key",
  25. // ssl_cert: "cert.pem"
  26. //});
  27.  
  28. // Interface réseau pour les connexions sortantes
  29. conf.outgoing_address = {
  30. IPv4: '0.0.0.0'
  31. //IPv6: '::'
  32. };
  33.  
  34.  
  35. // Est-ce que nous voulons activer le the built in Identd server?
  36. conf.identd = {
  37. enabled: false,
  38. port: 113,
  39. address: "0.0.0.0"
  40. };
  41.  
  42.  
  43. // les dossiers des clients sont
  44. conf.public_http = "client/";
  45.  
  46. // Max connexions par connexion. 0 pour désactiver
  47. conf.max_client_conns = 5;
  48.  
  49. // Max connections par server. 0 le désactive.
  50. conf.max_server_conns = 0;
  51.  
  52. conf.default_encoding = 'utf8';
  53.  
  54. /*
  55. * Par défaut(vrai nom) pour les connexions IRC
  56. * %n seront remplacés par les utilisateurs nick
  57. * %h remplacé par le nom d'hôte utilisateurs hostname
  58. */
  59. conf.default_gecos = '%n is using a Web IRC client';
  60.  
  61. /*
  62. * Par défaut ident / nom d'utilisateur pour les connexions IRC
  63. * %n seront remplacés par les utilisateurs nick
  64. * %h sera remplacé par le nom d'hôte utilisateurs
  65. * %i sera remplacé par user IP
  66. */
  67. conf.default_ident = '%i';
  68.  
  69. conf.quit_message = 'A bientôt sur TCHATT.NET - A hand-crafted IRC client';
  70.  
  71. conf.ircd_reconnect = true;
  72. /*
  73. * Côté client plugins
  74. * See http://github.com/prawnsalad/KiwiIRC/wiki/Client-plugins
  75. */
  76. conf.client_plugins = [
  77. // "http://server.com/kiwi/plugins/myplugin.html"
  78. ];
  79.  
  80. // Répertoire pour trouver les modules serveurs
  81. conf.module_dir = "../server_modules/";
  82.  
  83. // Quels modules à charger
  84. conf.modules = [
  85. // Ouvrez un port TCP pour contrôler le serveur Kiwi (default port 8888)
  86. // "control",
  87.  
  88. // Automatically reload CSS files when a theme changes
  89. // "client_file_watcher",
  90. ];
  91.  
  92. // mots de passe multiples webirc peuvent être utilisés pour plusieurs serveurs. kortex sa va servir a linker ton serveur sur ta page web et eviter le soucis que j'ai eu
  93. conf.webirc_pass = {
  94. "irc.tchatt.net": "8R,_:U7^9xLz69]m2:3$9Q8nvf?598KFXx&~9>W=2dN7Wnt=H{P=dkaFeaW7v7V@3pCzX>",
  95.  
  96. };
  97.  
  98.  
  99. // pour vérifier SSL certificats serveurs IRC de contre intégrés bien connus des autorités de certification
  100. conf.reject_unauthorised_certificates = false;
  101.  
  102.  
  103. // Whitelisted HTTP proxies in CIDR format
  104. conf.http_proxies = ["127.0.0.1/32"];
  105.  
  106. // Header that contains the real-ip from the HTTP proxy
  107. conf.http_proxy_ip_header = "x-forwarded-for";
  108.  
  109. // Base HTTP path to the KIWI IRC client (eg. /kiwi)
  110. conf.http_base_path = "/kiwi";
  111.  
  112.  
  113. /*
  114. * SOCKS (version 5) proxy settings
  115. * This feature is only available on node 0.10.0 and above.
  116. * Do not enable it if you're running 0.8 or below or Bad Things will happen.
  117. */
  118. conf.socks_proxy = {};
  119.  
  120. // Enable proxying outbound connections through a SOCKS proxy
  121. conf.socks_proxy.enabled = false;
  122.  
  123. // Proxy *all* outbound connections through a SOCKS proxy
  124. conf.socks_proxy.all = false;
  125.  
  126. // Use SOCKS proxy for these hosts only (if conf.sock_proxy.all === false)
  127. conf.socks_proxy.proxy_hosts = [
  128. "irc.tchatt.net"
  129. ];
  130.  
  131. // Host and port for the SOCKS proxy
  132. conf.socks_proxy.address = '127.0.0.1';
  133. conf.socks_proxy.port = 1080;
  134.  
  135. // Username and password for the SOCKS proxy
  136. // Set user to null to disable password authentication
  137. conf.socks_proxy.user = null;
  138. conf.socks_proxy.pass = null;
  139.  
  140.  
  141. // Default settings for the client. These may be changed in the browser
  142. conf.client = {
  143. server: 'irc.tchatt.net',
  144. port: 6697,
  145. ssl: false,
  146. channel: '#Accueil',
  147. channel_key: '',
  148. nick: 'invite_?',
  149. settings: {
  150. theme: 'relaxed',
  151. text_theme: 'default',
  152. channel_list_style: 'tabs',
  153. scrollback: 250,
  154. show_joins_parts: true,
  155. show_timestamps: false,
  156. use_24_hour_timestamps: true,
  157. mute_sounds: false,
  158. show_emoticons: true,
  159. ignore_new_queries: false,
  160. count_all_activity: false,
  161. show_autocomplete_slideout: true,
  162. locale: null // null = use the browser locale settings
  163. },
  164. window_title: 'TCHATT.NET'
  165. };
  166.  
  167. // List of themes available for the user to choose from
  168. conf.client_themes = [
  169. 'relaxed',
  170. 'mini',
  171. 'cli',
  172. 'basic'
  173. ];
  174.  
  175.  
  176. // If set, the client may only connect to this 1 IRC server
  177. //conf.restrict_server = "irc.kiwiirc.com";
  178. //conf.restrict_server_port = 6667;
  179. //conf.restrict_server_ssl = false;
  180. //conf.restrict_server_password = "";
  181.  
  182.  
  183.  
  184. //conf.client.kiwi_server = '';
  185.  
  186.  
  187. module.exports.production = conf;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement