File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import crypto from 'crypto'
22import { PoolConfig } from 'pg'
33import { getSecret } from '../lib/secrets.js'
44import { AccessControl } from './templates/swift.js'
5+ import pkg from '#package.json' assert { type : 'json' }
56
67export const PG_META_HOST = process . env . PG_META_HOST || '0.0.0.0'
78export const PG_META_PORT = Number ( process . env . PG_META_PORT || 1337 )
@@ -49,6 +50,7 @@ export const DEFAULT_POOL_CONFIG: PoolConfig = {
4950 max : 1 ,
5051 connectionTimeoutMillis : PG_CONN_TIMEOUT_SECS * 1000 ,
5152 ssl : PG_META_DB_SSL_ROOT_CERT ? { ca : PG_META_DB_SSL_ROOT_CERT } : undefined ,
53+ application_name : `postgres-meta ${ pkg . version } ` ,
5254}
5355
5456export const PG_META_REQ_HEADER = process . env . PG_META_REQ_HEADER || 'request-id'
You can’t perform that action at this time.
0 commit comments