mirror of
https://github.com/gethomepage/homepage.git
synced 2026-01-11 03:12:07 +08:00
Feature: crowdsec widget (#3197)
This commit is contained in:
18
src/widgets/crowdsec/widget.js
Normal file
18
src/widgets/crowdsec/widget.js
Normal 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;
|
||||
Reference in New Issue
Block a user