21 lines
702 B
JavaScript
21 lines
702 B
JavaScript
import { Sequelize } from 'sequelize';
|
|
|
|
// PRODUCTION: set this to false in production!
|
|
export const debug = true;
|
|
|
|
// HTTP port to listen to
|
|
export const port = 3000;
|
|
|
|
// PRODUCTION: change this to a random value.
|
|
// secret for jwt and hash salt.
|
|
// you can generate a new one with
|
|
// require('node:crypto').randomBytes(48).toString('base64')
|
|
export const secret = Buffer.from('m5GDNW92K/c+YdDTlai3lG0wwL8h63LcLD9XZOSz8LsqoyBFm7y0h0V/xNSECLwA', 'base64');
|
|
|
|
// PRODUCTION: change the folder to a suitable place
|
|
// key-value storage instance to use
|
|
export const db_instance = new Sequelize('sqlite:server-db.sqlite3', { logging: false });
|
|
|
|
// Time for a JWT to expire.
|
|
export const jwt_expire = '48h';
|