cloudcms-server 3.2.298 → 3.2.299
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/index.js +2 -2
- package/middleware/config/config.js +11 -0
- package/package.json +1 -1
- package/util/proxy-factory.js +3 -3
package/index.js
CHANGED
|
@@ -462,7 +462,13 @@ exports = module.exports = function()
|
|
|
462
462
|
}
|
|
463
463
|
|
|
464
464
|
// get the cloud cms application
|
|
465
|
+
console.log("RETRIEVE APP CONFIG START");
|
|
466
|
+
|
|
465
467
|
retrieveConfigApplication(req, configuration, function(err, application) {
|
|
468
|
+
console.log("RETRIEVE APP CONFIG DONE: " + err);
|
|
469
|
+
if (err) {
|
|
470
|
+
console.log("RET ERR: " + JSON.stringify(err, null, 2));
|
|
471
|
+
}
|
|
466
472
|
|
|
467
473
|
// find any settings for the given user or the project (if provided)
|
|
468
474
|
var q = {
|
|
@@ -522,6 +528,9 @@ exports = module.exports = function()
|
|
|
522
528
|
}
|
|
523
529
|
|
|
524
530
|
var uiConfigIds = [];
|
|
531
|
+
|
|
532
|
+
console.log("APP ID: " + application._doc);
|
|
533
|
+
console.log("SETTINGS QUERY: " + JSON.stringify(q, null, 2));
|
|
525
534
|
|
|
526
535
|
// find the settings for the given user id
|
|
527
536
|
var settingsList = [];
|
|
@@ -533,6 +542,8 @@ exports = module.exports = function()
|
|
|
533
542
|
settingsList.push(this);
|
|
534
543
|
}
|
|
535
544
|
}).then(function() {
|
|
545
|
+
|
|
546
|
+
console.log("SETTINGS DONE");
|
|
536
547
|
|
|
537
548
|
if (projectId)
|
|
538
549
|
{
|
package/package.json
CHANGED
package/util/proxy-factory.js
CHANGED
|
@@ -76,9 +76,9 @@ var createProxyHandler = function(proxyTarget, pathPrefix)
|
|
|
76
76
|
{
|
|
77
77
|
const { proxy, close } = require('fast-proxy')({
|
|
78
78
|
base: proxyTarget,
|
|
79
|
-
cacheURLs:
|
|
80
|
-
|
|
81
|
-
//
|
|
79
|
+
cacheURLs: 500,
|
|
80
|
+
undici: true
|
|
81
|
+
//http2: true
|
|
82
82
|
});
|
|
83
83
|
|
|
84
84
|
var proxyOptions = {};
|