is-critter/config.js
Vincent Batts 523b979764
Some checks failed
Basic Checking / Explore-Gitea-Actions (push) Failing after 42s
*.js: WIP changes for session handling, but ...
/newSession is still not right. It seems to work right the first time,
but then is an error...

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2023-09-29 16:34:41 -04:00

19 lines
534 B
JavaScript

const config = module.exports
config.PRODUCTION = process.env.NODE_ENV === 'production'
const bole = require('bole')
config.express = {
port: process.env.EXPRESS_PORT || 3000,
ip: '127.0.0.1'
}
if (config.PRODUCTION) {
config.express.ip = '0.0.0.0'
config.db_path = 'db/results.db'
config.session_token = process.env.SESSION_TOKEN
bole.output({ level: 'info', stream: process.stdout })
} else {
config.db_path = ':memory:'
config.session_token = 'cat bag'
bole.output({ level: 'debug', stream: process.stdout })
}