Mercurial > eldonilo > avatar
comparison configuration.js.example @ 10:a637cde69f71
Rename configuration.js to .example because it has to be modified by the user.
| author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
|---|---|
| date | Mon, 23 May 2011 12:18:38 +0200 |
| parents | configuration.js@9360b78c7a5b |
| children | 38ddd5888b8d |
comparison
equal
deleted
inserted
replaced
| 9:9360b78c7a5b | 10:a637cde69f71 |
|---|---|
| 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 // The JID and password of the component, that have to be configured in | |
| 24 // the host. | |
| 25 config.jid = 'avatar.example.org'; | |
| 26 config.password = 'hellohello'; | |
| 27 | |
| 28 // The hostname or IP address and the port of the XMPP server hosting | |
| 29 // the component. | |
| 30 config.host = 'localhost'; | |
| 31 config.port = 5347; | |
| 32 | |
| 33 // Root of the webservice, useful if you want to proxy it. | |
| 34 config.webRoot = '^/avatar/'; | |
| 35 | |
| 36 // These are the host and the port on which the web service will | |
| 37 // listen. If you want IPv4 connection only, instead of both IPv4 and | |
| 38 // IPv6, replace '::' by '0.0.0.0'. If you want a port < 1024, you | |
| 39 // have to start it as root, use a proxy or redirect it using a | |
| 40 // firewall like iptables. | |
| 41 config.webHost = '::'; | |
| 42 config.webPort = 8032; | |
| 43 | |
| 44 // Directory for the cache of the images. | |
| 45 config.directory = 'data'; | |
| 46 | |
| 47 // When true, assume that the TYPE of the avatar is image/png if not | |
| 48 // specified. Warning: it doesn’t follow the spec and is only a | |
| 49 // workaround for buggy clients. | |
| 50 config.guessType = false; |