Mercurial > eldonilo > blog
comparison configuration.js @ 0:f62b5c395a48
Initial commit.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sat, 04 Jun 2011 05:02:47 +0200 |
parents | |
children | 461a24a5a788 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f62b5c395a48 |
---|---|
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 account used. | |
24 config.jid = 'blog@linkmauve.fr'; | |
25 config.password = 'blog'; | |
26 | |
27 // The JID of the node displayed if no arguments are given. | |
28 config.defaultNode = 'psgxs.linkmauve.fr/blog'; | |
29 | |
30 // Root of the webservice, and Atom HTTP service. | |
31 config.webRoot = '/blog/'; | |
32 config.atomRoot = '/atom/'; | |
33 | |
34 // These are the host and the port on which the web service will | |
35 // listen. If you want IPv4 connection only, instead of both IPv4 and | |
36 // IPv6, replace '::' by '0.0.0.0'. If you want a port < 1024, you | |
37 // have to start it as root, use a proxy or redirect it using a | |
38 // firewall like iptables. | |
39 config.webHost = '::'; | |
40 config.webPort = 8033; | |
41 | |
42 // MIME types used to serve files. Normally only index.xhtml would have | |
43 // to be served by node, but if you are lazy you can serve the entire | |
44 // directory and those are there for you. | |
45 config.types = { | |
46 xhtml: 'application/xhtml+xml', | |
47 js: 'application/ecmascript', | |
48 css: 'text/css', | |
49 svg: 'image/svg+xml' | |
50 } |