Mercurial > eldonilo > avatar
annotate configuration.js @ 7:51cda3a6e1c3
Better handling of proxy connections; add an option to specify the root on the webserver.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Thu, 19 May 2011 19:36:53 +0200 |
parents | 9b2f17ea1594 |
children | e0cd5ede76af |
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'; |
7
51cda3a6e1c3
Better handling of proxy connections; add an option to specify the root on the webserver.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
5
diff
changeset
|
27 |
51cda3a6e1c3
Better handling of proxy connections; add an option to specify the root on the webserver.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
5
diff
changeset
|
28 config.webRoot = '^/avatar/'; |
4
8acaa0a575c7
Allow configuration of the host.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
29 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
|
30 config.guessType = false; // When true, assume that the TYPE of the avatar is image/png if not specified. |