@tiledesk/tiledesk-server 2.9.18 → 2.9.19
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +3 -0
- package/app.js +0 -6
- package/package.json +1 -1
- package/websocket/webSocketServer.js +2 -23
package/CHANGELOG.md
CHANGED
package/app.js
CHANGED
@@ -423,12 +423,6 @@ if (process.env.ROUTELOGGER_ENABLED==="true") {
|
|
423
423
|
}
|
424
424
|
|
425
425
|
app.get('/', function (req, res) {
|
426
|
-
|
427
|
-
console.log("(/api) req ", req.headers)
|
428
|
-
console.log("(/api) x-forwarded-for: ", req.headers['x-forwarded-for'], "remote port: ", req.socket.remotePort);
|
429
|
-
console.log("(/api) X-Real-IP ", req.headers['X-Real-IP'])
|
430
|
-
console.log("(/api) remoteAddress: ", req.socket.remoteAddress)
|
431
|
-
|
432
426
|
res.send('Hello from Tiledesk server. It\'s UP. See the documentation here http://developer.tiledesk.com');
|
433
427
|
});
|
434
428
|
|
package/package.json
CHANGED
@@ -40,6 +40,8 @@ var cacheEnabler = require("../services/cacheEnabler");
|
|
40
40
|
var lastRequestsLimit = process.env.WS_HISTORY_REQUESTS_LIMIT || 100;
|
41
41
|
winston.debug('lastRequestsLimit:' + lastRequestsLimit);
|
42
42
|
|
43
|
+
lastRequestsLimit = Number(lastRequestsLimit);
|
44
|
+
|
43
45
|
var messagesLimit = process.env.WS_HISTORY_MESSAGES_LIMIT || 300;
|
44
46
|
winston.debug('messagesLimit:' + messagesLimit);
|
45
47
|
|
@@ -196,29 +198,6 @@ class WebSocketServer {
|
|
196
198
|
var projectId = urlSub[1];
|
197
199
|
winston.debug('projectId: ' + projectId);
|
198
200
|
|
199
|
-
if (projectId === "65203e12f8c0cf002cf4110b"
|
200
|
-
|| projectId === "62c3f10152dc7400352bab0d"
|
201
|
-
|| projectId === "66acec0cf7ebf80013d67974"
|
202
|
-
|| projectId === "6613ff078890fc0013ad3c3a"
|
203
|
-
|| projectId === "6565047fdd64fd001323f37c"
|
204
|
-
|| projectId === "656054000410fa00132e5dcc") {
|
205
|
-
|
206
|
-
console.log('(WebSocket) WSS onSubscribeCallback - ProjectID ' + projectId);
|
207
|
-
console.log("(WebSocket) req ", req.headers)
|
208
|
-
console.log("(WebSocket) x-forwarded-for: ", req.headers['x-forwarded-for'], "remote port: ", req.socket.remotePort);
|
209
|
-
console.log("(/api) X-Real-IP ", req.headers['X-Real-IP'])
|
210
|
-
console.log("(WebSocket) remoteAddress: ", req.socket.remoteAddress)
|
211
|
-
|
212
|
-
|
213
|
-
try {
|
214
|
-
console.log("req: ", JSON.stringify(req))
|
215
|
-
} catch(err) {
|
216
|
-
console.log("Unable to stringify request")
|
217
|
-
console.log("req: ", req)
|
218
|
-
}
|
219
|
-
|
220
|
-
}
|
221
|
-
|
222
201
|
let q = Project.findOne({ _id: projectId, status: 100 })
|
223
202
|
|
224
203
|
if (cacheEnabler.project) {
|