Mercurial > eldonilo > avatar
comparison configuration.js.example @ 23:d63a2784564d
Set a timeout for the vCard stanza.
| author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
|---|---|
| date | Sat, 16 Jul 2011 15:29:26 +0200 |
| parents | e4916f1763e5 |
| children |
comparison
equal
deleted
inserted
replaced
| 22:9e21bd93f79d | 23:d63a2784564d |
|---|---|
| 36 config.webPort = 8032; | 36 config.webPort = 8032; |
| 37 | 37 |
| 38 // Directory for the cache of the images. | 38 // Directory for the cache of the images. |
| 39 config.directory = 'data'; | 39 config.directory = 'data'; |
| 40 | 40 |
| 41 // When true, assume that the TYPE of the avatar is image/png if not | |
| 42 // specified. Warning: it doesn’t follow the spec and is only a | |
| 43 // workaround for buggy clients. | |
| 44 config.guessType = false; | |
| 45 | |
| 46 // Time after which the avatar will be retrieved again, in seconds. | 41 // Time after which the avatar will be retrieved again, in seconds. |
| 47 config.expire = 24*60*60; | 42 config.expire = 24*60*60; |
| 43 | |
| 44 // Time to wait for a response to a stanza, in milliseconds. This is | |
| 45 // needed for inexistent domain because with some XMPP servers, the | |
| 46 // default is to wait one minute. | |
| 47 config.timeout = 1000; | |
| 48 | 48 |
| 49 // Allowed extensions, associated with their MIME type. | 49 // Allowed extensions, associated with their MIME type. |
| 50 config.extensions = { | 50 config.extensions = { |
| 51 png: 'image/png', | 51 png: 'image/png', |
| 52 svg: 'image/svg+xml', | 52 svg: 'image/svg+xml', |
| 56 | 56 |
| 57 // Image to use as fallback when there is no usable avatar. If not set, | 57 // Image to use as fallback when there is no usable avatar. If not set, |
| 58 // a SVG image will be displayed. | 58 // a SVG image will be displayed. |
| 59 //config.defaultImage = 'http://example.org/default.svg'; | 59 //config.defaultImage = 'http://example.org/default.svg'; |
| 60 | 60 |
| 61 // When true, assume that the TYPE of the avatar is image/png if not | |
| 62 // specified. Warning: it doesn’t follow the spec and is only a | |
| 63 // workaround for buggy clients. | |
| 64 config.guessType = false; | |
| 65 | |
| 61 // Try Gravatar if there is a problem during XMPP avatar retrieving. | 66 // Try Gravatar if there is a problem during XMPP avatar retrieving. |
| 62 //config.useGravatar = false; | 67 config.useGravatar = false; |
| 63 | 68 |
| 64 // Prints XMPP stanzas | 69 // Prints XMPP stanzas |
| 65 config.debug = false; | 70 config.debug = false; |