We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc69684 commit ca06061Copy full SHA for ca06061
src/server/constants.ts
@@ -2,6 +2,7 @@ import crypto from 'crypto'
2
import { PoolConfig } from 'pg'
3
import { getSecret } from '../lib/secrets.js'
4
import { AccessControl } from './templates/swift.js'
5
+import pkg from '#package.json' assert { type: 'json' }
6
7
export const PG_META_HOST = process.env.PG_META_HOST || '0.0.0.0'
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,
51
connectionTimeoutMillis: PG_CONN_TIMEOUT_SECS * 1000,
52
ssl: PG_META_DB_SSL_ROOT_CERT ? { ca: PG_META_DB_SSL_ROOT_CERT } : undefined,
53
+ application_name: `postgres-meta ${pkg.version}`,
54
}
55
56
export const PG_META_REQ_HEADER = process.env.PG_META_REQ_HEADER || 'request-id'
0 commit comments