mirror of
https://github.com/spacebarchat/server.git
synced 2026-04-26 17:27:29 +00:00
Drop nonfunctional default ipdata key
This commit is contained in:
@@ -36,7 +36,7 @@ export class SecurityConfiguration {
|
||||
// https://docs.abuseipdb.com/#api-daily-rate-limits
|
||||
abuseipdbBlacklistRatelimit: number = 5;
|
||||
abuseipdbConfidenceScoreTreshold: number = 50;
|
||||
ipdataApiKey: string | null = "eca677b284b3bac29eb72f5e496aa9047f26543605efe99ff2ce35c9"; // isnt even valid anymore it seems?
|
||||
ipdataApiKey: string | null = null;
|
||||
mfaBackupCodeCount: number = 10;
|
||||
statsWorldReadable: boolean = true;
|
||||
defaultRegistrationTokenExpiration: number = 1000 * 60 * 60 * 24 * 7; //1 week
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
|
||||
export class DropDefaultIPDataKey1765665440000 implements MigrationInterface {
|
||||
name = 'DropDefaultIPDataKey1765665440000'
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`UPDATE "config" SET "value" = NULL WHERE "key" = 'security_ipdataApiKey' AND "value" = '"eca677b284b3bac29eb72f5e496aa9047f26543605efe99ff2ce35c9"'`);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`UPDATE "config" SET "value" = '"eca677b284b3bac29eb72f5e496aa9047f26543605efe99ff2ce35c9"' WHERE "key" = 'security_ipdataApiKey' AND "value" IS NULL`);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user