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,
|
2018-11-21 11:12:59 -08:00
|
|
|
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',
|
2021-10-11 06:50:09 -07:00
|
|
|
bulmaswatch: (process.env.BULMASWATCH || 'default').toLowerCase(),
|
2021-12-03 08:13:43 -08:00
|
|
|
pfp: process.env.PFP !== 'false',
|
2022-10-03 07:39:21 -07:00
|
|
|
language: process.env.LANGUAGE?.toLowerCase() || 'en-us',
|
|
|
|
guestPassword: process.env.GUEST_PASSWORD
|
2020-11-08 13:54:08 -08:00
|
|
|
}
|
2022-10-18 13:22:07 -07:00
|
|
|
|
|
|
|
if (module.exports.guestPassword) module.exports.wishlist.public = false
|