journey/server/config/site.js
2017-02-23 19:29:58 +01:00

52 lines
1.1 KiB
JavaScript

'use strict';
const _ = require('lodash');
const domain = 'newseri.com';
const defaults = {
domain,
title: 'Newseri Admin',
name: 'newseri-admin',
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: `admin.${domain}`,
},
production: {
hostname: `admin.${domain}`,
protocol: 'https',
// emails: {
// robot: 'no-reply@' + domain,
// info: 'info@' + domain,
// webmaster: 'webmaster@' + domain,
// order: 'order@' + domain,
// },
},
}[ENV]);