21 lines
704 B
JavaScript
21 lines
704 B
JavaScript
import { FileSystemKeyValueStorage } from './kv/index.mjs';
|
|
|
|
// 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 kv_instance = new FileSystemKeyValueStorage('./kv-data');
|
|
|
|
// Time for a JWT to expire.
|
|
export const jwt_expire = '48h';
|