summary refs log tree commit diff
path: root/src/util/Config.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/Config.ts')
-rw-r--r--src/util/Config.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/util/Config.ts b/src/util/Config.ts

index a0d44a2d..ca6daa16 100644 --- a/src/util/Config.ts +++ b/src/util/Config.ts
@@ -79,6 +79,7 @@ export interface DefaultOptions { }; }; security: { + requestSignature: string; jwtSecret: string; forwadedFor: string | null; // header to get the real user ip address captcha: { @@ -93,7 +94,7 @@ export interface DefaultOptions { }; register: { email: { - necessary: boolean; + necessary: boolean; // we have to use necessary instead of required as the cli tool uses json schema and can't use required allowlist: boolean; blocklist: boolean; domains: string[]; @@ -164,6 +165,7 @@ export const DefaultOptions: DefaultOptions = { }, }, security: { + requestSignature: crypto.randomBytes(32).toString("base64"), jwtSecret: crypto.randomBytes(256).toString("base64"), forwadedFor: null, // forwadedFor: "X-Forwarded-For" // nginx/reverse proxy