import ConfigManager from '../libs/configManager.js';
import __path from './path.js';
import _ from 'lodash';
import log from './log.js';

// Create a new config instance.
const config = new ConfigManager(__path + '/config.json', true, {
	db_connection_string: 'mysql://USER:PASSWORD@HOST:3306/DATABASE',
	http_listen_address: '0.0.0.0',
	http_port: 3000,
	http_domain: 'example.org',
	http_enable_hsts: false,
	devmode: true
});

!config.global.devmode && log.core.error('devmode active! Do NOT use this in prod!');

export default config;
