Feature: crowdsec widget (#3197)

This commit is contained in:
shamoon
2024-03-28 15:39:40 -05:00
committed by GitHub
parent def9b27006
commit d4c0e482d3
8 changed files with 169 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
import crowdsecProxyHandler from "./proxy";
const widget = {
api: "{url}/v1/{endpoint}",
loginURL: "{url}/v1/watchers/login",
proxyHandler: crowdsecProxyHandler,
mappings: {
alerts: {
endpoint: "alerts",
},
bans: {
endpoint: "alerts?decision_type=ban&origin=crowdsec&has_active_decision=1",
},
},
};
export default widget;