@platformatic/runtime 3.67.0 → 4.0.0-new-config.0
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/config.d.ts +5 -43
- package/index.d.ts +10 -12
- package/index.js +191 -6
- package/lib/config.js +125 -60
- package/lib/errors.js +5 -13
- package/lib/generator.js +19 -92
- package/lib/management-api.js +3 -5
- package/lib/management-handlers.js +3 -5
- package/lib/runtime.js +377 -183
- package/lib/schema.js +1 -1
- package/lib/upgrade.js +16 -1
- package/lib/versions/v4.0.0.js +31 -0
- package/lib/worker/controller.js +51 -55
- package/lib/worker/itc.js +5 -6
- package/lib/worker/main.js +4 -19
- package/lib/worker/symbols.js +2 -0
- package/lib/worker-scaler.js +8 -10
- package/package.json +17 -16
- package/schema.json +33 -147
package/schema.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://schemas.platformatic.dev/@platformatic/runtime/
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/@platformatic/runtime/4.0.0-new-config.0.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"title": "Platformatic Runtime Config",
|
|
5
5
|
"type": "object",
|
|
@@ -83,9 +83,6 @@
|
|
|
83
83
|
}
|
|
84
84
|
]
|
|
85
85
|
},
|
|
86
|
-
"entrypoint": {
|
|
87
|
-
"type": "string"
|
|
88
|
-
},
|
|
89
86
|
"basePath": {
|
|
90
87
|
"type": "string"
|
|
91
88
|
},
|
|
@@ -137,10 +134,14 @@
|
|
|
137
134
|
"default": true
|
|
138
135
|
},
|
|
139
136
|
"config": {
|
|
140
|
-
"
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
137
|
+
"anyOf": [
|
|
138
|
+
{
|
|
139
|
+
"type": "string"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"type": "object"
|
|
143
|
+
}
|
|
144
|
+
]
|
|
144
145
|
},
|
|
145
146
|
"reuseTcpPorts": {
|
|
146
147
|
"type": "boolean",
|
|
@@ -562,7 +563,14 @@
|
|
|
562
563
|
"resolvePath": true
|
|
563
564
|
},
|
|
564
565
|
"config": {
|
|
565
|
-
"
|
|
566
|
+
"anyOf": [
|
|
567
|
+
{
|
|
568
|
+
"type": "string"
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
"type": "object"
|
|
572
|
+
}
|
|
573
|
+
]
|
|
566
574
|
},
|
|
567
575
|
"url": {
|
|
568
576
|
"type": "string"
|
|
@@ -571,9 +579,6 @@
|
|
|
571
579
|
"type": "string",
|
|
572
580
|
"default": "main"
|
|
573
581
|
},
|
|
574
|
-
"useHttp": {
|
|
575
|
-
"type": "boolean"
|
|
576
|
-
},
|
|
577
582
|
"reuseTcpPorts": {
|
|
578
583
|
"type": "boolean",
|
|
579
584
|
"default": true
|
|
@@ -992,7 +997,14 @@
|
|
|
992
997
|
"resolvePath": true
|
|
993
998
|
},
|
|
994
999
|
"config": {
|
|
995
|
-
"
|
|
1000
|
+
"anyOf": [
|
|
1001
|
+
{
|
|
1002
|
+
"type": "string"
|
|
1003
|
+
},
|
|
1004
|
+
{
|
|
1005
|
+
"type": "object"
|
|
1006
|
+
}
|
|
1007
|
+
]
|
|
996
1008
|
},
|
|
997
1009
|
"url": {
|
|
998
1010
|
"type": "string"
|
|
@@ -1001,9 +1013,6 @@
|
|
|
1001
1013
|
"type": "string",
|
|
1002
1014
|
"default": "main"
|
|
1003
1015
|
},
|
|
1004
|
-
"useHttp": {
|
|
1005
|
-
"type": "boolean"
|
|
1006
|
-
},
|
|
1007
1016
|
"reuseTcpPorts": {
|
|
1008
1017
|
"type": "boolean",
|
|
1009
1018
|
"default": true
|
|
@@ -1422,7 +1431,14 @@
|
|
|
1422
1431
|
"resolvePath": true
|
|
1423
1432
|
},
|
|
1424
1433
|
"config": {
|
|
1425
|
-
"
|
|
1434
|
+
"anyOf": [
|
|
1435
|
+
{
|
|
1436
|
+
"type": "string"
|
|
1437
|
+
},
|
|
1438
|
+
{
|
|
1439
|
+
"type": "object"
|
|
1440
|
+
}
|
|
1441
|
+
]
|
|
1426
1442
|
},
|
|
1427
1443
|
"url": {
|
|
1428
1444
|
"type": "string"
|
|
@@ -1431,9 +1447,6 @@
|
|
|
1431
1447
|
"type": "string",
|
|
1432
1448
|
"default": "main"
|
|
1433
1449
|
},
|
|
1434
|
-
"useHttp": {
|
|
1435
|
-
"type": "boolean"
|
|
1436
|
-
},
|
|
1437
1450
|
"reuseTcpPorts": {
|
|
1438
1451
|
"type": "boolean",
|
|
1439
1452
|
"default": true
|
|
@@ -2070,133 +2083,6 @@
|
|
|
2070
2083
|
"default": {},
|
|
2071
2084
|
"additionalProperties": true
|
|
2072
2085
|
},
|
|
2073
|
-
"server": {
|
|
2074
|
-
"type": "object",
|
|
2075
|
-
"properties": {
|
|
2076
|
-
"hostname": {
|
|
2077
|
-
"type": "string"
|
|
2078
|
-
},
|
|
2079
|
-
"port": {
|
|
2080
|
-
"anyOf": [
|
|
2081
|
-
{
|
|
2082
|
-
"type": "integer"
|
|
2083
|
-
},
|
|
2084
|
-
{
|
|
2085
|
-
"type": "string"
|
|
2086
|
-
}
|
|
2087
|
-
]
|
|
2088
|
-
},
|
|
2089
|
-
"portAssignment": {
|
|
2090
|
-
"type": "string",
|
|
2091
|
-
"enum": [
|
|
2092
|
-
"shared",
|
|
2093
|
-
"perWorkerIncrement"
|
|
2094
|
-
],
|
|
2095
|
-
"description": "Configures how entrypoint server worker ports are assigned. When set to shared, all workers listen on the same port. When set to perWorkerIncrement, each worker will use its own port, starting from port (worker 0)."
|
|
2096
|
-
},
|
|
2097
|
-
"backlog": {
|
|
2098
|
-
"type": "integer",
|
|
2099
|
-
"description": "The maximum length of the queue of pending connections"
|
|
2100
|
-
},
|
|
2101
|
-
"http2": {
|
|
2102
|
-
"type": "boolean"
|
|
2103
|
-
},
|
|
2104
|
-
"https": {
|
|
2105
|
-
"type": "object",
|
|
2106
|
-
"properties": {
|
|
2107
|
-
"allowHTTP1": {
|
|
2108
|
-
"type": "boolean"
|
|
2109
|
-
},
|
|
2110
|
-
"key": {
|
|
2111
|
-
"anyOf": [
|
|
2112
|
-
{
|
|
2113
|
-
"type": "string"
|
|
2114
|
-
},
|
|
2115
|
-
{
|
|
2116
|
-
"type": "object",
|
|
2117
|
-
"properties": {
|
|
2118
|
-
"path": {
|
|
2119
|
-
"type": "string",
|
|
2120
|
-
"resolvePath": true
|
|
2121
|
-
}
|
|
2122
|
-
},
|
|
2123
|
-
"additionalProperties": false
|
|
2124
|
-
},
|
|
2125
|
-
{
|
|
2126
|
-
"type": "array",
|
|
2127
|
-
"items": {
|
|
2128
|
-
"anyOf": [
|
|
2129
|
-
{
|
|
2130
|
-
"type": "string"
|
|
2131
|
-
},
|
|
2132
|
-
{
|
|
2133
|
-
"type": "object",
|
|
2134
|
-
"properties": {
|
|
2135
|
-
"path": {
|
|
2136
|
-
"type": "string",
|
|
2137
|
-
"resolvePath": true
|
|
2138
|
-
}
|
|
2139
|
-
},
|
|
2140
|
-
"additionalProperties": false
|
|
2141
|
-
}
|
|
2142
|
-
]
|
|
2143
|
-
}
|
|
2144
|
-
}
|
|
2145
|
-
]
|
|
2146
|
-
},
|
|
2147
|
-
"cert": {
|
|
2148
|
-
"anyOf": [
|
|
2149
|
-
{
|
|
2150
|
-
"type": "string"
|
|
2151
|
-
},
|
|
2152
|
-
{
|
|
2153
|
-
"type": "object",
|
|
2154
|
-
"properties": {
|
|
2155
|
-
"path": {
|
|
2156
|
-
"type": "string",
|
|
2157
|
-
"resolvePath": true
|
|
2158
|
-
}
|
|
2159
|
-
},
|
|
2160
|
-
"additionalProperties": false
|
|
2161
|
-
},
|
|
2162
|
-
{
|
|
2163
|
-
"type": "array",
|
|
2164
|
-
"items": {
|
|
2165
|
-
"anyOf": [
|
|
2166
|
-
{
|
|
2167
|
-
"type": "string"
|
|
2168
|
-
},
|
|
2169
|
-
{
|
|
2170
|
-
"type": "object",
|
|
2171
|
-
"properties": {
|
|
2172
|
-
"path": {
|
|
2173
|
-
"type": "string",
|
|
2174
|
-
"resolvePath": true
|
|
2175
|
-
}
|
|
2176
|
-
},
|
|
2177
|
-
"additionalProperties": false
|
|
2178
|
-
}
|
|
2179
|
-
]
|
|
2180
|
-
}
|
|
2181
|
-
}
|
|
2182
|
-
]
|
|
2183
|
-
},
|
|
2184
|
-
"requestCert": {
|
|
2185
|
-
"type": "boolean"
|
|
2186
|
-
},
|
|
2187
|
-
"rejectUnauthorized": {
|
|
2188
|
-
"type": "boolean"
|
|
2189
|
-
}
|
|
2190
|
-
},
|
|
2191
|
-
"additionalProperties": false,
|
|
2192
|
-
"required": [
|
|
2193
|
-
"key",
|
|
2194
|
-
"cert"
|
|
2195
|
-
]
|
|
2196
|
-
}
|
|
2197
|
-
},
|
|
2198
|
-
"additionalProperties": false
|
|
2199
|
-
},
|
|
2200
2086
|
"reuseTcpPorts": {
|
|
2201
2087
|
"type": "boolean",
|
|
2202
2088
|
"default": true
|