-
Notifications
You must be signed in to change notification settings - Fork 29
/
dbos-config.schema.json
193 lines (193 loc) · 5.55 KB
/
dbos-config.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "DBOS Config",
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string",
"description": "The name of your application"
},
"language": {
"type": "string",
"description": "The language used in your application",
"enum": [
"node",
"python"
]
},
"database": {
"type": "object",
"additionalProperties": false,
"properties": {
"hostname": {
"type": "string",
"description": "The hostname or IP address of the application database"
},
"port": {
"type": "number",
"description": "The port number of the application database"
},
"username": {
"type": "string",
"description": "The username to use when connecting to the application database",
"not": {
"enum": ["dbos"]
}
},
"password": {
"type": "string",
"description": "The password to use when connecting to the application database. Developers are strongly encouraged to use environment variable substitution to avoid storing secrets in source."
},
"connectionTimeoutMillis": {
"type": "number",
"description": "The number of milliseconds the system waits before timing out when connecting to the application database"
},
"app_db_name": {
"type": "string",
"description": "The name of the application database"
},
"sys_db_name": {
"type": "string",
"description": "The name of the system database"
},
"ssl": {
"type": "boolean",
"description": "Use SSL/TLS to securely connect to the database (default: true)"
},
"ssl_ca": {
"type": "string",
"description": "If using SSL/TLS to securely connect to a database, path to an SSL root certificate file"
},
"local_suffix": {
"type": "boolean",
"description": "Whether to suffix app_db_name with '_local'. Set to true when doing local development using a DBOS Cloud database."
},
"app_db_client": {
"type": "string",
"description": "Specify the database client to use to connect to the application database",
"enum": [
"pg-node",
"prisma",
"typeorm",
"knex",
"drizzle"
]
},
"migrate": {
"type": "array",
"description": "Specify a list of user DB migration commands to run"
},
"rollback": {
"type": "array",
"description": "Specify a list of user DB rollback commands to run"
}
},
"required": [
"hostname",
"port",
"username",
"password"
]
},
"telemetry": {
"type": "object",
"additionalProperties": false,
"properties": {
"logs": {
"type": "object",
"additionalProperties": false,
"properties": {
"addContextMetadata": {
"type": "boolean",
"description": "Adds contextual information, such as workflow UUID, to each log entry"
},
"logLevel": {
"type": "string",
"description": "A filter on what logs should be printed to the standard output"
},
"silent": {
"type": "boolean",
"description": "Silences the logger such that nothing is printed to the standard output"
}
}
},
"OTLPExporter": {
"type": "object",
"additionalProperties": false,
"properties": {
"logsEndpoint": {
"type": "string",
"description": "The URL of an OTLP collector to which to export logs"
},
"tracesEndpoint": {
"type": "string",
"description": "The URL of an OTLP collector to which to export traces"
}
}
}
}
},
"runtimeConfig": {
"type": "object",
"additionalProperties": false,
"properties": {
"entrypoints": {
"type": "array",
"items": {
"type": "string"
}
},
"port": {
"type": "number",
"description": "The port number of the application server (Default: 3000)"
},
"admin_port": {
"type": "number",
"description": "The port number of the admin server (Default: 3001 or the app server port + 1)"
},
"start": {
"type": "array",
"items": {
"type": "string"
},
"description": "Commands to start the application"
},
"setup": {
"type": "array",
"items": {
"type": "string"
},
"description": "Commands to setup the application execution environment"
}
}
},
"http": {
"type": "object",
"additionalProperties": false,
"properties": {
"cors_middleware": {
"type": "boolean"
},
"credentials": {
"type": "boolean"
},
"allowed_origins": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"application": {},
"env": {},
"version": {
"type": "string",
"deprecated": true
}
},
"required": [
"database"
]
}