mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-11 22:17:14 +03:00
Add different max for private db connection
This commit is contained in:
@@ -98,6 +98,7 @@ addDefaults(config, {
|
||||
fallbackOnFail: true,
|
||||
stopRetryThreshold: 800
|
||||
},
|
||||
postgresPrivateMax: 10,
|
||||
dumpDatabase: {
|
||||
enabled: false,
|
||||
minTimeBetweenMs: 180000,
|
||||
|
||||
@@ -30,6 +30,7 @@ if (config.postgres?.enabled) {
|
||||
createDbIfNotExists: config.createDatabaseIfNotExist,
|
||||
postgres: {
|
||||
...config.postgres,
|
||||
max: config.postgresPrivateMax ?? config.postgres.max,
|
||||
database: "privateDB"
|
||||
},
|
||||
postgresReadOnly: config.postgresReadOnly ? {
|
||||
|
||||
@@ -84,6 +84,7 @@ export interface SBSConfig {
|
||||
maxRewardTimePerSegmentInSeconds?: number;
|
||||
postgres?: CustomWritePostgresConfig;
|
||||
postgresReadOnly?: CustomPostgresReadOnlyConfig;
|
||||
postgresPrivateMax?: number;
|
||||
dumpDatabase?: DumpDatabase;
|
||||
diskCacheURL: string;
|
||||
crons: CronJobOptions;
|
||||
|
||||
Reference in New Issue
Block a user