mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-11-07 12:52:54 -05:00
Added support for Crowdsec, an open-source and collaborative IPS (Intrusion Prevention System)
This commit is contained in:
@@ -36,6 +36,9 @@ module.exports.CreateWebRelayServer = function (parent, db, args, certificates,
|
||||
var tlsSessionStoreCount = 0; // Number of cached TLS session information in store.
|
||||
|
||||
function serverStart() {
|
||||
// Setup CrowdSec bouncer middleware if needed
|
||||
if (parent.crowdsecMiddleware != null) { obj.app.use(parent.crowdsecMiddleware); }
|
||||
|
||||
if (args.trustedproxy) {
|
||||
// Reverse proxy should add the "X-Forwarded-*" headers
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user