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,
|
fallbackOnFail: true,
|
||||||
stopRetryThreshold: 800
|
stopRetryThreshold: 800
|
||||||
},
|
},
|
||||||
|
postgresPrivateMax: 10,
|
||||||
dumpDatabase: {
|
dumpDatabase: {
|
||||||
enabled: false,
|
enabled: false,
|
||||||
minTimeBetweenMs: 180000,
|
minTimeBetweenMs: 180000,
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ if (config.postgres?.enabled) {
|
|||||||
createDbIfNotExists: config.createDatabaseIfNotExist,
|
createDbIfNotExists: config.createDatabaseIfNotExist,
|
||||||
postgres: {
|
postgres: {
|
||||||
...config.postgres,
|
...config.postgres,
|
||||||
|
max: config.postgresPrivateMax ?? config.postgres.max,
|
||||||
database: "privateDB"
|
database: "privateDB"
|
||||||
},
|
},
|
||||||
postgresReadOnly: config.postgresReadOnly ? {
|
postgresReadOnly: config.postgresReadOnly ? {
|
||||||
|
|||||||
@@ -84,6 +84,7 @@ export interface SBSConfig {
|
|||||||
maxRewardTimePerSegmentInSeconds?: number;
|
maxRewardTimePerSegmentInSeconds?: number;
|
||||||
postgres?: CustomWritePostgresConfig;
|
postgres?: CustomWritePostgresConfig;
|
||||||
postgresReadOnly?: CustomPostgresReadOnlyConfig;
|
postgresReadOnly?: CustomPostgresReadOnlyConfig;
|
||||||
|
postgresPrivateMax?: number;
|
||||||
dumpDatabase?: DumpDatabase;
|
dumpDatabase?: DumpDatabase;
|
||||||
diskCacheURL: string;
|
diskCacheURL: string;
|
||||||
crons: CronJobOptions;
|
crons: CronJobOptions;
|
||||||
|
|||||||
Reference in New Issue
Block a user