diff configuration.js.example @ 20:e4916f1763e5

Deactivable debug; fix a stupid bug in gravatar; add a better default image and make it configurable.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 16 Jul 2011 13:54:47 +0200
parents 9ff8f951da99
children d63a2784564d
line wrap: on
line diff
--- a/configuration.js.example
+++ b/configuration.js.example
@@ -21,11 +21,11 @@
 var config = exports;
 
 // The JID and password of the account used.
-config.jid = 'avatar.example.org';
+config.jid = 'avatar@example.org';
 config.password = 'hellohello';
 
 // Root of the webservice, useful if you want to proxy it.
-config.webRoot = '^/avatar/';
+config.webRoot = '/avatar/';
 
 // These are the host and the port on which the web service will
 // listen.  If you want IPv4 connection only, instead of both IPv4 and
@@ -54,5 +54,12 @@ config.extensions = {
 	gif: 'image/gif'
 };
 
+// Image to use as fallback when there is no usable avatar. If not set,
+// a SVG image will be displayed.
+//config.defaultImage = 'http://example.org/default.svg';
+
 // Try Gravatar if there is a problem during XMPP avatar retrieving.
-config.useGravatar = true;
+//config.useGravatar = false;
+
+// Prints XMPP stanzas
+config.debug = false;