pomodoro/server/config/site.js
2016-08-14 19:18:09 +02:00

52 lines
1.0 KiB
JavaScript

'use strict'
const _ = require('lodash')
const domain = 'pomodoro.bitmill.co'
const defaults = {
domain: domain,
title: 'Pomodoro',
name: 'pomodoro',
protocol: 'http',
get host() {
return this.port ? this.hostname + ':' + this.port : this.hostname
},
get url() {
return this.protocol + '://' + this.host + '/'
},
emails: {
robot: 'no-reply@thecodebureau.com',
info: 'info@thecodebureau.com',
webmaster: 'webmaster@thecodebureau.com',
order: 'info@thecodebureau.com'
}
}
module.exports = _.merge(defaults, {
development: {
hostname: 'localhost',
port: process.env.EXTERNAL_PORT || process.env.PORT || require('./port')
},
testing: {
hostname: 'localhost',
port: process.env.PORT || require('./port')
},
staging: {
hostname: 'staging.' + domain
},
production: {
hostname: domain,
protocol: 'https',
emails: {
robot: 'no-reply@bitmill.co',
info: 'info@bitmill.co',
webmaster: 'webmaster@bitmill.co',
order: 'order@bitmill.co'
}
}
}[ENV])