Mercurial > eldonilo > blog
diff 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 |
line wrap: on
line diff
new file mode 100644 --- /dev/null +++ b/configuration.js @@ -0,0 +1,50 @@ +/* + * Copyright (C) 2011 Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> + * + * This file is the source code of an XMPP avatar retriever. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, version 3 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +'use strict'; + +var config = exports || {}; + +// The JID and password of the account used. +config.jid = 'blog@linkmauve.fr'; +config.password = 'blog'; + +// The JID of the node displayed if no arguments are given. +config.defaultNode = 'psgxs.linkmauve.fr/blog'; + +// Root of the webservice, and Atom HTTP service. +config.webRoot = '/blog/'; +config.atomRoot = '/atom/'; + +// These are the host and the port on which the web service will +// listen. If you want IPv4 connection only, instead of both IPv4 and +// IPv6, replace '::' by '0.0.0.0'. If you want a port < 1024, you +// have to start it as root, use a proxy or redirect it using a +// firewall like iptables. +config.webHost = '::'; +config.webPort = 8033; + +// MIME types used to serve files. Normally only index.xhtml would have +// to be served by node, but if you are lazy you can serve the entire +// directory and those are there for you. +config.types = { + xhtml: 'application/xhtml+xml', + js: 'application/ecmascript', + css: 'text/css', + svg: 'image/svg+xml' +}