Mercurial > eldonilo > blog
view configuration.js @ 8:461a24a5a788
Silent errors when testing if we are server- or client-side.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Wed, 02 Nov 2011 09:48:28 -0700 |
parents | f62b5c395a48 |
children | 360186772aa3 |
line wrap: on
line source
/* * 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 = (typeof exports !== 'undefined')? 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' }