christmas/config/index.js

18 lines
893 B
JavaScript
Raw Normal View History

2020-11-08 13:54:08 -08:00
require('dotenv').config()
2018-11-26 13:18:28 -08:00
2018-11-20 11:19:58 -08:00
module.exports = {
2020-11-03 17:37:48 -08:00
dbPrefix: process.env.DB_PREFIX || 'dbs/',
2018-11-20 11:19:58 -08:00
defaultFailureRedirect: process.env.DEFAULT_FAILURE_REDIRECT || '/login',
2018-11-30 13:44:06 -08:00
port: Number(process.env.PORT) || 3000,
2020-11-03 17:16:23 -08:00
dbExposePort: Number(process.env.DB_EXPOSE_PORT) || null,
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',
2019-11-17 12:46:08 -08:00
shortTitle: process.env.SHORT_TITLE || 'Christmas',
2020-10-29 11:14:38 -07:00
wishlist: require('./wishlist'),
2020-11-02 14:22:07 -08:00
base: (process.env.ROOT_PATH || '/').endsWith('/') ? (process.env.ROOT_PATH || '/') : `${process.env.ROOT_PATH}/`,
2020-12-01 19:20:01 -08:00
trustProxy: process.env.TRUST_PROXY === 'true' ? true : process.env.TRUST_PROXY || 'loopback',
bulmaswatch: (process.env.BULMASWATCH || 'default').toLowerCase()
2020-11-08 13:54:08 -08:00
}