view src/config.coffee @ 12:f190abf340ef

fixed some problems with facebook (caused by developers.facebook.com) removed fql :D
author Mathias Gebbe <mgebbe@intevation.de>
date Thu, 12 Jun 2014 10:23:05 +0200
parents 98a070c98982
children
line wrap: on
line source
# Copyright (C) 2014 by Intevation GmbH
# Author: Mathias Gebbe <mgebbe@intevation.de>
#
# This file is Free Software under the Apache License, Version 2.0;
# and comes with NO WARRANTY!
# See the documentation coming with pumpbridge for details.

fs = require 'fs'
path = require 'path'
_ = require("underscore")

filename = '/etc/pumpbridge.json'

defaults =
  name: 'pumpbridge'
  description: 'bridge it'
  forwardInterval: 15 * 60 * 1000
  updateInterval: 12 * 60 * 60 * 1000
  params: {}
  views: path.join(__dirname, '..', 'views')
  static: path.join(__dirname, '..', 'public')
  foreign: 'pumpbridge'
  foreignName: null

if fs.existsSync(filename)
  config = _.defaults(JSON.parse(fs.readFileSync(filename)), defaults)
else
  config = defaults

exports.config = config
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)