@builder6/server 0.12.6 → 0.13.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/dist/bootstrap.js +22 -0
- package/dist/bootstrap.js.map +1 -1
- package/package.json +15 -14
package/dist/bootstrap.js
CHANGED
|
@@ -11,6 +11,7 @@ const express_1 = require("express");
|
|
|
11
11
|
const platform_ws_1 = require("@nestjs/platform-ws");
|
|
12
12
|
const nestjs_pino_1 = require("nestjs-pino");
|
|
13
13
|
const session = require("express-session");
|
|
14
|
+
const http_proxy_middleware_1 = require("http-proxy-middleware");
|
|
14
15
|
const project = require("../package.json");
|
|
15
16
|
const all_exceptions_filter_1 = require("./filters/all-exceptions.filter");
|
|
16
17
|
async function bootstrap() {
|
|
@@ -46,6 +47,27 @@ async function bootstrap() {
|
|
|
46
47
|
app.use((0, express_1.json)({ limit: '50mb' }));
|
|
47
48
|
app.use((0, express_1.urlencoded)({ extended: true, limit: '100mb', parameterLimit: 1000000 }));
|
|
48
49
|
app.use(compression());
|
|
50
|
+
if (process.env.B6_PROXY_TARGET) {
|
|
51
|
+
const server = app.getHttpAdapter().getInstance();
|
|
52
|
+
server.use((0, http_proxy_middleware_1.createProxyMiddleware)({
|
|
53
|
+
target: process.env.B6_PROXY_TARGET,
|
|
54
|
+
changeOrigin: true,
|
|
55
|
+
toProxy: true,
|
|
56
|
+
ws: true,
|
|
57
|
+
on: {
|
|
58
|
+
proxyReq: http_proxy_middleware_1.fixRequestBody,
|
|
59
|
+
},
|
|
60
|
+
followRedirects: true,
|
|
61
|
+
ejectPlugins: true,
|
|
62
|
+
logger: console,
|
|
63
|
+
plugins: [
|
|
64
|
+
http_proxy_middleware_1.debugProxyErrorsPlugin,
|
|
65
|
+
http_proxy_middleware_1.loggerPlugin,
|
|
66
|
+
http_proxy_middleware_1.errorResponsePlugin,
|
|
67
|
+
http_proxy_middleware_1.proxyEventsPlugin,
|
|
68
|
+
],
|
|
69
|
+
}));
|
|
70
|
+
}
|
|
49
71
|
await app.listen(process.env.B6_PORT ?? 5100);
|
|
50
72
|
}
|
|
51
73
|
//# sourceMappingURL=bootstrap.js.map
|
package/dist/bootstrap.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bootstrap.js","sourceRoot":"","sources":["../src/bootstrap.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"bootstrap.js","sourceRoot":"","sources":["../src/bootstrap.ts"],"names":[],"mappings":";;AAwBA,8BAsEC;AA9FD,uCAA2C;AAC3C,6CAAyC;AACzC,+BAA4B;AAE5B,6CAAiE;AACjE,8CAA8C;AAC9C,2CAA2C;AAC3C,qCAA2C;AAC3C,qDAAgD;AAChD,6CAAqC;AAErC,2CAA2C;AAC3C,iEAO+B;AAE/B,2CAA2C;AAC3C,2EAAsE;AAE/D,KAAK,UAAU,SAAS;IAC7B,MAAM,GAAG,GAAG,MAAM,kBAAW,CAAC,MAAM,CAAyB,sBAAS,EAAE;QACtE,UAAU,EAAE,IAAI;KACjB,CAAC,CAAC;IACH,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,oBAAM,CAAC,CAAC,CAAC;IAC/B,GAAG,CAAC,gBAAgB,CAAC,IAAI,2CAAmB,EAAE,CAAC,CAAC;IAChD,GAAG,CAAC,mBAAmB,CAAC,IAAI,uBAAS,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5C,GAAG,CAAC,UAAU,CAAC;QACb,MAAM,EAAE,UAAU,MAAM,EAAE,QAAQ;YAChC,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACvB,CAAC;QACD,OAAO,EAAE,oCAAoC;QAC7C,WAAW,EAAE,IAAI;KAClB,CAAC,CAAC;IACH,GAAG,CAAC,GAAG,CACL,OAAO,CAAC;QACN,MAAM,EAAE,qBAAqB;QAC7B,MAAM,EAAE,KAAK;QACb,iBAAiB,EAAE,KAAK;KACzB,CAAC,CACH,CAAC;IAEF,MA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AY,EAAE,IAAI;YAClB,MAAM,EAAE,OAAO;YACf,OAAO,EAAE;gBACP,8CAAsB;gBACtB,oCAAY;gBACZ,2CAAmB;gBACnB,yCAAiB;aAClB;SACF,CAAC,CACH,CAAC;IACJ,CAAC;IAED,MAAM,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,IAAI,IAAI,CAAC,CAAC;AAChD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@builder6/server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "AGPL-3.0-only",
|
|
@@ -26,18 +26,18 @@
|
|
|
26
26
|
"test:e2e": "jest --config ./test/jest-e2e.json"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@builder6/cli": "0.
|
|
30
|
-
"@builder6/core": "0.
|
|
31
|
-
"@builder6/email": "0.
|
|
32
|
-
"@builder6/files": "0.
|
|
33
|
-
"@builder6/moleculer": "0.
|
|
34
|
-
"@builder6/pages": "0.
|
|
35
|
-
"@builder6/query-mongodb": "0.
|
|
36
|
-
"@builder6/rooms": "0.
|
|
37
|
-
"@builder6/services": "0.
|
|
38
|
-
"@builder6/sharepoint": "0.
|
|
39
|
-
"@builder6/steedos": "0.
|
|
40
|
-
"@builder6/tables": "0.
|
|
29
|
+
"@builder6/cli": "0.13.0",
|
|
30
|
+
"@builder6/core": "0.13.0",
|
|
31
|
+
"@builder6/email": "0.13.0",
|
|
32
|
+
"@builder6/files": "0.13.0",
|
|
33
|
+
"@builder6/moleculer": "0.13.0",
|
|
34
|
+
"@builder6/pages": "0.13.0",
|
|
35
|
+
"@builder6/query-mongodb": "0.13.0",
|
|
36
|
+
"@builder6/rooms": "0.13.0",
|
|
37
|
+
"@builder6/services": "0.13.0",
|
|
38
|
+
"@builder6/sharepoint": "0.13.0",
|
|
39
|
+
"@builder6/steedos": "0.13.0",
|
|
40
|
+
"@builder6/tables": "0.13.0",
|
|
41
41
|
"@nestjs/common": "^10.0.0",
|
|
42
42
|
"@nestjs/config": "^3.3.0",
|
|
43
43
|
"@nestjs/core": "^9.0.0",
|
|
@@ -62,6 +62,7 @@
|
|
|
62
62
|
"express-session": "^1.18.1",
|
|
63
63
|
"fs-extra": "^11.2.0",
|
|
64
64
|
"hbs": "^4.2.0",
|
|
65
|
+
"http-proxy-middleware": "^3.0.3",
|
|
65
66
|
"ioredis": "^5.4.1",
|
|
66
67
|
"mime-types": "^2.1.35",
|
|
67
68
|
"moleculer": "^0.14.35",
|
|
@@ -123,5 +124,5 @@
|
|
|
123
124
|
"publishConfig": {
|
|
124
125
|
"access": "public"
|
|
125
126
|
},
|
|
126
|
-
"gitHead": "
|
|
127
|
+
"gitHead": "a40640886910c8da206ac1eccaf702706f602d92"
|
|
127
128
|
}
|