File tree 2 files changed +3
-1
lines changed
nix/cardano-services/deployments
packages/cardano-services/src/Program/services
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 32
32
TOKEN_METADATA_SERVER_URL = values . cardano-services . tokenMetadataServerUrl ;
33
33
USE_TYPEORM_ASSET_PROVIDER = "true" ;
34
34
35
- POSTGRES_POOL_MAX_ASSET = "10 " ;
35
+ POSTGRES_POOL_MAX_ASSET = "500 " ;
36
36
POSTGRES_HOST_ASSET = values . postgresName ;
37
37
POSTGRES_PORT_ASSET = "5432" ;
38
38
POSTGRES_DB_ASSET = "asset" ;
Original file line number Diff line number Diff line change @@ -115,6 +115,7 @@ export const getConnectionConfig = <Suffix extends ConnectionNames>(
115
115
suffix : Suffix ,
116
116
options ?: PosgresProgramOptions < Suffix >
117
117
) : Observable < PgConnectionConfig > => {
118
+ const max = getPostgresOption ( suffix , 'postgresPoolMax' , options ) ;
118
119
const postgresConnectionString = getPostgresOption ( suffix , 'postgresConnectionString' , options ) ;
119
120
const postgresSslCaFile = getPostgresOption ( suffix , 'postgresSslCaFile' , options ) ;
120
121
const ssl = postgresSslCaFile ? { ca : loadSecret ( postgresSslCaFile ) } : undefined ;
@@ -127,6 +128,7 @@ export const getConnectionConfig = <Suffix extends ConnectionNames>(
127
128
return of ( {
128
129
database : conn . database ,
129
130
host : conn . host ,
131
+ max,
130
132
password : conn . password ,
131
133
port : conn . port ? Number . parseInt ( conn . port ) : undefined ,
132
134
ssl : mergeTlsOptions ( conn , ssl ) ,
You can’t perform that action at this time.
0 commit comments