You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
whooshy/lib/globals.js

25 lines
756 B
JavaScript

const utils = require('./utils'),
fsx = require('fs-extra'),
pg = require('pg');
const settings = utils.readSettings('.');
Object.assign(exports, {
settings: settings,
changelog: fsx.readFileSync('CHANGELOG.md', 'utf-8'),
pgPool: new pg.Pool({
host: settings.postgres.host,
port: settings.postgres.port,
user: settings.postgres.user,
password: settings.postgres.password,
database: settings.postgres.database
}),
cookieInfo: {
headline: 'This website uses cookies',
content: "This website uses cookies to store your session data. No data is permanently stored.",
onclick: 'acceptCookies()',
id: 'cookie-container',
button: 'All right!'
}
});