@brimble/models 3.8.95 → 3.8.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/project/index.js +37 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/project/index.d.ts +11 -0
- package/package.json +1 -1
package/dist/project/index.js
CHANGED
|
@@ -100,6 +100,43 @@ const projectSchema = new mongoose_1.Schema({
|
|
|
100
100
|
type: Boolean,
|
|
101
101
|
default: false,
|
|
102
102
|
},
|
|
103
|
+
pgbouncerConfig: {
|
|
104
|
+
type: {
|
|
105
|
+
defaultPoolSize: {
|
|
106
|
+
type: Number,
|
|
107
|
+
default: 20,
|
|
108
|
+
},
|
|
109
|
+
maxDbConnections: {
|
|
110
|
+
type: Number,
|
|
111
|
+
default: 0,
|
|
112
|
+
},
|
|
113
|
+
maxDbClientConnections: {
|
|
114
|
+
type: Number,
|
|
115
|
+
default: 0,
|
|
116
|
+
},
|
|
117
|
+
maxUserConnections: {
|
|
118
|
+
type: Number,
|
|
119
|
+
default: 0,
|
|
120
|
+
},
|
|
121
|
+
maxClientConn: {
|
|
122
|
+
type: Number,
|
|
123
|
+
default: 1000,
|
|
124
|
+
},
|
|
125
|
+
maxPreparedStatements: {
|
|
126
|
+
type: Number,
|
|
127
|
+
default: 200,
|
|
128
|
+
},
|
|
129
|
+
serverLifetime: {
|
|
130
|
+
type: Number,
|
|
131
|
+
default: 3600,
|
|
132
|
+
},
|
|
133
|
+
serverIdleTimeout: {
|
|
134
|
+
type: Number,
|
|
135
|
+
default: 600,
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
default: undefined,
|
|
139
|
+
},
|
|
103
140
|
tlsEnabledAt: {
|
|
104
141
|
type: Date,
|
|
105
142
|
default: null,
|
package/dist/types/index.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export type { IPermission } from "./permission";
|
|
|
24
24
|
export type { IPaymentMethod } from "./payment-method";
|
|
25
25
|
export type { IPlanConfiguration } from "./plan_configuration";
|
|
26
26
|
export type { IProvider } from "./provider";
|
|
27
|
-
export type { IProject } from "./project";
|
|
27
|
+
export type { IPgBouncerConfig, IProject } from "./project";
|
|
28
28
|
export type { IProjectAnalytics } from "./project_analytics";
|
|
29
29
|
export type { IProjectConnection } from "./project/connection";
|
|
30
30
|
export type { IProjectNetworkSettings } from "./project-network-settings";
|
|
@@ -13,6 +13,16 @@ import { IProjectEnvironment } from "../project-environment";
|
|
|
13
13
|
import { IRegion } from "../region";
|
|
14
14
|
import { IVolume } from "../volume";
|
|
15
15
|
export type RuntimeVersions = Record<string, string>;
|
|
16
|
+
export interface IPgBouncerConfig {
|
|
17
|
+
defaultPoolSize: number;
|
|
18
|
+
maxDbConnections: number;
|
|
19
|
+
maxDbClientConnections: number;
|
|
20
|
+
maxUserConnections: number;
|
|
21
|
+
maxClientConn: number;
|
|
22
|
+
maxPreparedStatements: number;
|
|
23
|
+
serverLifetime: number;
|
|
24
|
+
serverIdleTimeout: number;
|
|
25
|
+
}
|
|
16
26
|
export interface IProject extends Document {
|
|
17
27
|
name: string;
|
|
18
28
|
healthCheckPath?: string;
|
|
@@ -33,6 +43,7 @@ export interface IProject extends Document {
|
|
|
33
43
|
dir: string;
|
|
34
44
|
tlsEnabled: boolean;
|
|
35
45
|
pgbouncerEnabled: boolean;
|
|
46
|
+
pgbouncerConfig?: IPgBouncerConfig | null;
|
|
36
47
|
tlsEnabledAt?: Date | null;
|
|
37
48
|
tlsCaObjectKey?: string | null;
|
|
38
49
|
tlsServerCertExpiresAt?: Date | null;
|