summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-12-01 23:28:50 +0100
committerRory& <root@rory.gay>2025-12-02 16:33:26 +0100
commitb0ea29bdabfe4ec3b6d587994f46dedbed3407a6 (patch)
treee2baee509c9b86770cc9048779113ee2d4e362ea
parentClasses for abuseipdb/ipdata (diff)
downloadserver-ts-b0ea29bdabfe4ec3b6d587994f46dedbed3407a6.tar.xz
Forgot the configuration, lol
-rw-r--r--src/util/config/types/SecurityConfiguration.ts7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/util/config/types/SecurityConfiguration.ts b/src/util/config/types/SecurityConfiguration.ts

index cb18c96a..ae1c6cb8 100644 --- a/src/util/config/types/SecurityConfiguration.ts +++ b/src/util/config/types/SecurityConfiguration.ts
@@ -32,8 +32,11 @@ export class SecurityConfiguration { // trusted proxies to get the real user ip address // requires a reverse proxy to overwrite X-Forwarded-For, X-Forwarded-Host, X-Forwarded-Proto trustedProxies: string | boolean | null = null; - ipdataApiKey: string | null = - "eca677b284b3bac29eb72f5e496aa9047f26543605efe99ff2ce35c9"; + abuseIpDbApiKey: string | null = null; + // https://docs.abuseipdb.com/#api-daily-rate-limits + abuseipdbBlacklistRatelimit: number = 5; + abuseipdbConfidenceScoreTreshold: number = 50; + ipdataApiKey: string | null = "eca677b284b3bac29eb72f5e496aa9047f26543605efe99ff2ce35c9"; // isnt even valid anymore it seems? mfaBackupCodeCount: number = 10; statsWorldReadable: boolean = true; defaultRegistrationTokenExpiration: number = 1000 * 60 * 60 * 24 * 7; //1 week