Mercurial > eldonilo > avatar
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 19:9ff8f951da99 | 20:e4916f1763e5 |
|---|---|
| 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 account used. | 23 // The JID and password of the account used. |
| 24 config.jid = 'avatar.example.org'; | 24 config.jid = 'avatar@example.org'; |
| 25 config.password = 'hellohello'; | 25 config.password = 'hellohello'; |
| 26 | 26 |
| 27 // Root of the webservice, useful if you want to proxy it. | 27 // Root of the webservice, useful if you want to proxy it. |
| 28 config.webRoot = '^/avatar/'; | 28 config.webRoot = '/avatar/'; |
| 29 | 29 |
| 30 // These are the host and the port on which the web service will | 30 // These are the host and the port on which the web service will |
| 31 // listen. If you want IPv4 connection only, instead of both IPv4 and | 31 // listen. If you want IPv4 connection only, instead of both IPv4 and |
| 32 // IPv6, replace '::' by '0.0.0.0'. If you want a port < 1024, you | 32 // IPv6, replace '::' by '0.0.0.0'. If you want a port < 1024, you |
| 33 // have to start it as root, use a proxy or redirect it using a | 33 // have to start it as root, use a proxy or redirect it using a |
| 52 svg: 'image/svg+xml', | 52 svg: 'image/svg+xml', |
| 53 jpg: 'image/jpeg', | 53 jpg: 'image/jpeg', |
| 54 gif: 'image/gif' | 54 gif: 'image/gif' |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 // Image to use as fallback when there is no usable avatar. If not set, | |
| 58 // a SVG image will be displayed. | |
| 59 //config.defaultImage = 'http://example.org/default.svg'; | |
| 60 | |
| 57 // Try Gravatar if there is a problem during XMPP avatar retrieving. | 61 // Try Gravatar if there is a problem during XMPP avatar retrieving. |
| 58 config.useGravatar = true; | 62 //config.useGravatar = false; |
| 63 | |
| 64 // Prints XMPP stanzas | |
| 65 config.debug = false; |