comparison configuration.js @ 8:e0cd5ede76af

Better documentation.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Thu, 19 May 2011 20:52:34 +0200
parents 51cda3a6e1c3
children 9360b78c7a5b
comparison
equal deleted inserted replaced
7:51cda3a6e1c3 8:e0cd5ede76af
18 18
19 'use strict'; 19 'use strict';
20 20
21 var config = exports; 21 var config = exports;
22 22
23 // The JID and password of the component, that have to be configured in
24 // the host.
23 config.jid = 'avatar.example.org'; 25 config.jid = 'avatar.example.org';
26 config.password = 'hellohello';
27
28 // The hostname or IP address and the port of the XMPP server hosting
29 // the component.
24 config.host = 'localhost'; 30 config.host = 'localhost';
25 config.port = 5347; 31 config.port = 5347;
26 config.password = 'hellohello';
27 32
33 // Root of the webservice, useful if you want to proxy it.
28 config.webRoot = '^/avatar/'; 34 config.webRoot = '^/avatar/';
29 config.directory = 'data'; // Directory of the cache. 35
30 config.guessType = false; // When true, assume that the TYPE of the avatar is image/png if not specified. 36 // It is the port on which the web service will listen. If you want a
37 // port < 1024, you have to start it as root, use a proxy or redirect
38 // it using a firewall like iptables.
39 config.webPort = 8032;
40
41 // Directory for the cache of the images.
42 config.directory = 'data';
43
44 // When true, assume that the TYPE of the avatar is image/png if not
45 // specified. Warning: it doesn’t follow the spec and is only a
46 // workaround for buggy clients.
47 config.guessType = false;