mirror of
https://github.com/zoriya/flood.git
synced 2025-12-06 07:16:18 +00:00
Unfortunately there are still many people who prefer static config file. As such, schema validate the configurations to ensure that the failure happens loud and early when the config.js is broken. Also enforces that the length of secret must be larger than 30 as the JWT secret can be brute forced locally without interaction with the server. This ensures that we always have proper configurations and avoids unnecessary and bad defensive programming practices.
8 lines
130 B
TypeScript
8 lines
130 B
TypeScript
// @see shared/schema/Config
|
|
|
|
import type {Config} from '@shared/schema/Config';
|
|
|
|
declare const CONFIG: Config;
|
|
|
|
export = CONFIG;
|