mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-03-04 07:18:50 -07:00
[backend] Enable authorized fetch by default for new instances
This does not affect existing instances.
This commit is contained in:
parent
5d496a1636
commit
6b45b7019c
2 changed files with 14 additions and 1 deletions
packages/backend/src
|
@ -0,0 +1,13 @@
|
||||||
|
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||||
|
|
||||||
|
export class SecureModeDefaults1697649475796 implements MigrationInterface {
|
||||||
|
name = 'SecureModeDefaults1697649475796'
|
||||||
|
|
||||||
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||||
|
await queryRunner.query(`ALTER TABLE "meta" ALTER COLUMN "secureMode" SET DEFAULT true`);
|
||||||
|
}
|
||||||
|
|
||||||
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||||
|
await queryRunner.query(`ALTER TABLE "meta" ALTER COLUMN "secureMode" SET DEFAULT false`);
|
||||||
|
}
|
||||||
|
}
|
|
@ -124,7 +124,7 @@ export class Meta {
|
||||||
public silencedHosts: string[];
|
public silencedHosts: string[];
|
||||||
|
|
||||||
@Column("boolean", {
|
@Column("boolean", {
|
||||||
default: false,
|
default: true,
|
||||||
})
|
})
|
||||||
public secureMode: boolean;
|
public secureMode: boolean;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue