From bff8f0f64229b68027dfed22b9aca30509e02429 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Sat, 29 May 2021 23:42:06 +0200 Subject: :sparkles: add requestSignature to Config --- src/util/Config.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/util/Config.ts') 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 -- cgit 1.5.1