feat: add autoAcceptPeering instance setting with drizzle migration
Adds `auto_accept_peering` integer column (default 1/true) to the `instance_settings` singleton table, controlling whether this instance auto-accepts incoming peering requests. Includes generated migration `0001_clear_earthquake.sql` applied automatically on server boot.
This commit is contained in:
@@ -0,0 +1 @@
|
||||
ALTER TABLE `instance_settings` ADD `auto_accept_peering` integer DEFAULT 1 NOT NULL;
|
||||
File diff suppressed because it is too large
Load Diff
@@ -8,6 +8,13 @@
|
||||
"when": 1775687181033,
|
||||
"tag": "0000_initial",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 1,
|
||||
"version": "6",
|
||||
"when": 1775734599940,
|
||||
"tag": "0001_clear_earthquake",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -315,6 +315,7 @@ export const instanceSettings = sqliteTable('instance_settings', {
|
||||
federationRelayEnabled: integer('federation_relay_enabled').notNull().default(1),
|
||||
federationRelayTtlDays: integer('federation_relay_ttl_days').notNull().default(30),
|
||||
defaultAutoRotateIntervalDays: integer('default_auto_rotate_interval_days').notNull().default(90),
|
||||
autoAcceptPeering: integer('auto_accept_peering').notNull().default(1),
|
||||
updatedAt: integer('updated_at').notNull(),
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user