Mercurial > eldonilo > avatar
annotate configuration.js @ 5:9b2f17ea1594
Add an option to guess the type of an avatar even if it is unspecified.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Thu, 19 May 2011 17:27:37 +0200 |
parents | 8acaa0a575c7 |
children | 51cda3a6e1c3 |
rev | line source |
---|---|
0 | 1 /* |
2 * Copyright (C) 2011 Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | |
3 * | |
4 * This file is the source code of an XMPP avatar retriever. | |
5 * | |
6 * This program is free software: you can redistribute it and/or modify | |
7 * it under the terms of the GNU Affero General Public License as | |
8 * published by the Free Software Foundation, version 3 of the License. | |
9 * | |
10 * This program is distributed in the hope that it will be useful, | |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 * GNU Affero General Public License for more details. | |
14 * | |
15 * You should have received a copy of the GNU Affero General Public License | |
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. | |
17 */ | |
18 | |
19 'use strict'; | |
20 | |
21 var config = exports; | |
22 | |
23 config.jid = 'avatar.example.org'; | |
4
8acaa0a575c7
Allow configuration of the host.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
24 config.host = 'localhost'; |
8acaa0a575c7
Allow configuration of the host.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
25 config.port = 5347; |
0 | 26 config.password = 'hellohello'; |
4
8acaa0a575c7
Allow configuration of the host.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
27 config.directory = 'data'; // Directory of the cache. |
5
9b2f17ea1594
Add an option to guess the type of an avatar even if it is unspecified.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
4
diff
changeset
|
28 config.guessType = false; // When true, assume that the TYPE of the avatar is image/png if not specified. |