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'
2
2
import { PoolConfig } from 'pg'
3
3
import { getSecret } from '../lib/secrets.js'
4
4
import { AccessControl } from './templates/swift.js'
5
+ import pkg from '#package.json' assert { type : 'json' }
5
6
6
7
export const PG_META_HOST = process . env . PG_META_HOST || '0.0.0.0'
7
8
export const PG_META_PORT = Number ( process . env . PG_META_PORT || 1337 )
@@ -49,6 +50,7 @@ export const DEFAULT_POOL_CONFIG: PoolConfig = {
49
50
max : 1 ,
50
51
connectionTimeoutMillis : PG_CONN_TIMEOUT_SECS * 1000 ,
51
52
ssl : PG_META_DB_SSL_ROOT_CERT ? { ca : PG_META_DB_SSL_ROOT_CERT } : undefined ,
53
+ application_name : `postgres-meta ${ pkg . version } ` ,
52
54
}
53
55
54
56
export 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