christmas/config/index.js

15 lines
533 B
JavaScript
Raw Normal View History

2018-11-20 11:19:58 -08:00
require('dotenv').config();
2018-11-26 13:18:28 -08:00
const yesNo = require('yes-no');
2018-11-20 11:19:58 -08:00
module.exports = {
dbUrl: process.env.DB_URL || 'db',
defaultFailureRedirect: process.env.DEFAULT_FAILURE_REDIRECT || '/login',
port: process.env.PORT || 3000,
proxyServer: process.env.PROXY_SERVER || undefined,
2018-11-22 15:42:19 -08:00
secret: process.env.SECRET || require('./secret'),
2018-11-22 16:07:42 -08:00
sessionMaxAge: Number(process.env.SESSION_MAX_AGE) || 1000 * 60 * 60 * 24 * 7,
2018-11-26 13:18:28 -08:00
siteTitle: process.env.SITE_TITLE || 'Christmas Community',
useCDN: yesNo.parse(process.env.USE_CDN || true)
2018-11-20 11:19:58 -08:00
};