From 846df82a84b7586173d9fa04f7745cd977e27d40 Mon Sep 17 00:00:00 2001 From: Kerma Gérald Date: Fri, 21 Jan 2022 10:59:00 +0100 Subject: lua-cs-bouncer: initial package MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Lua Crowdsec Bouncer module Lua module to allow ip (or not) from CrowdSec API. https://github.com/crowdsecurity/lua-cs-bouncer required for crowdsec-nginx-bouncer Signed-off-by: Kerma Gérald --- lang/lua-cs-bouncer/files/lua-cs-bouncer.defaults | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 lang/lua-cs-bouncer/files/lua-cs-bouncer.defaults (limited to 'lang/lua-cs-bouncer/files') diff --git a/lang/lua-cs-bouncer/files/lua-cs-bouncer.defaults b/lang/lua-cs-bouncer/files/lua-cs-bouncer.defaults new file mode 100644 index 000000000..12e4a9988 --- /dev/null +++ b/lang/lua-cs-bouncer/files/lua-cs-bouncer.defaults @@ -0,0 +1,13 @@ +#!/bin/sh + +CONFIG=/usr/lib/lua/crowdsec/crowdsec.conf +## Gen&ConfigApiKey +if grep -q "{API_KEY}" "$CONFIG"; then + SUFFIX=`tr -dc A-Za-z0-9