Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var conf = {};
- // Exécutez le serveur Kiwi sous un différent user/group
- conf.user = "";
- conf.group = "";
- // Log
- conf.log = "kiwi.log";
- // Ne pas modifier cette ligne!
- conf.servers = [];
- conf.servers.push({
- port: 7778,
- address: "0.0.0.0"
- });
- // Example SSL server block
- //conf.servers.push({
- // port: 7777,
- // address: "0.0.0.0",
- //
- // ssl: true,
- // ssl_key: "server.key",
- // ssl_cert: "cert.pem"
- //});
- // Interface réseau pour les connexions sortantes
- conf.outgoing_address = {
- IPv4: '0.0.0.0'
- //IPv6: '::'
- };
- // Est-ce que nous voulons activer le the built in Identd server?
- conf.identd = {
- enabled: false,
- port: 113,
- address: "0.0.0.0"
- };
- // les dossiers des clients sont
- conf.public_http = "client/";
- // Max connexions par connexion. 0 pour désactiver
- conf.max_client_conns = 5;
- // Max connections par server. 0 le désactive.
- conf.max_server_conns = 0;
- conf.default_encoding = 'utf8';
- /*
- * Par défaut(vrai nom) pour les connexions IRC
- * %n seront remplacés par les utilisateurs nick
- * %h remplacé par le nom d'hôte utilisateurs hostname
- */
- conf.default_gecos = '%n is using a Web IRC client';
- /*
- * Par défaut ident / nom d'utilisateur pour les connexions IRC
- * %n seront remplacés par les utilisateurs nick
- * %h sera remplacé par le nom d'hôte utilisateurs
- * %i sera remplacé par user IP
- */
- conf.default_ident = '%i';
- conf.quit_message = 'A bientôt sur TCHATT.NET - A hand-crafted IRC client';
- conf.ircd_reconnect = true;
- /*
- * Côté client plugins
- * See http://github.com/prawnsalad/KiwiIRC/wiki/Client-plugins
- */
- conf.client_plugins = [
- // "http://server.com/kiwi/plugins/myplugin.html"
- ];
- // Répertoire pour trouver les modules serveurs
- conf.module_dir = "../server_modules/";
- // Quels modules à charger
- conf.modules = [
- // Ouvrez un port TCP pour contrôler le serveur Kiwi (default port 8888)
- // "control",
- // Automatically reload CSS files when a theme changes
- // "client_file_watcher",
- ];
- // 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
- conf.webirc_pass = {
- "irc.tchatt.net": "8R,_:U7^9xLz69]m2:3$9Q8nvf?598KFXx&~9>W=2dN7Wnt=H{P=dkaFeaW7v7V@3pCzX>",
- };
- // pour vérifier SSL certificats serveurs IRC de contre intégrés bien connus des autorités de certification
- conf.reject_unauthorised_certificates = false;
- // Whitelisted HTTP proxies in CIDR format
- conf.http_proxies = ["127.0.0.1/32"];
- // Header that contains the real-ip from the HTTP proxy
- conf.http_proxy_ip_header = "x-forwarded-for";
- // Base HTTP path to the KIWI IRC client (eg. /kiwi)
- conf.http_base_path = "/kiwi";
- /*
- * SOCKS (version 5) proxy settings
- * This feature is only available on node 0.10.0 and above.
- * Do not enable it if you're running 0.8 or below or Bad Things will happen.
- */
- conf.socks_proxy = {};
- // Enable proxying outbound connections through a SOCKS proxy
- conf.socks_proxy.enabled = false;
- // Proxy *all* outbound connections through a SOCKS proxy
- conf.socks_proxy.all = false;
- // Use SOCKS proxy for these hosts only (if conf.sock_proxy.all === false)
- conf.socks_proxy.proxy_hosts = [
- "irc.tchatt.net"
- ];
- // Host and port for the SOCKS proxy
- conf.socks_proxy.address = '127.0.0.1';
- conf.socks_proxy.port = 1080;
- // Username and password for the SOCKS proxy
- // Set user to null to disable password authentication
- conf.socks_proxy.user = null;
- conf.socks_proxy.pass = null;
- // Default settings for the client. These may be changed in the browser
- conf.client = {
- server: 'irc.tchatt.net',
- port: 6697,
- ssl: false,
- channel: '#Accueil',
- channel_key: '',
- nick: 'invite_?',
- settings: {
- theme: 'relaxed',
- text_theme: 'default',
- channel_list_style: 'tabs',
- scrollback: 250,
- show_joins_parts: true,
- show_timestamps: false,
- use_24_hour_timestamps: true,
- mute_sounds: false,
- show_emoticons: true,
- ignore_new_queries: false,
- count_all_activity: false,
- show_autocomplete_slideout: true,
- locale: null // null = use the browser locale settings
- },
- window_title: 'TCHATT.NET'
- };
- // List of themes available for the user to choose from
- conf.client_themes = [
- 'relaxed',
- 'mini',
- 'cli',
- 'basic'
- ];
- // If set, the client may only connect to this 1 IRC server
- //conf.restrict_server = "irc.kiwiirc.com";
- //conf.restrict_server_port = 6667;
- //conf.restrict_server_ssl = false;
- //conf.restrict_server_password = "";
- //conf.client.kiwi_server = '';
- module.exports.production = conf;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement