mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-16 00:00:22 -04:00
Merge pull request #355 from linuxserver/swag-crowdsec-disable-f2b
This commit is contained in:
@@ -23,6 +23,7 @@ Set the following environment variables on your SWAG container.
|
|||||||
| `CROWDSEC_SITE_KEY` | **Optional** | reCAPTCHA v2 Site Key |
|
| `CROWDSEC_SITE_KEY` | **Optional** | reCAPTCHA v2 Site Key |
|
||||||
| `CROWDSEC_SECRET_KEY` | **Optional** | reCAPTCHA v2 Secret Key |
|
| `CROWDSEC_SECRET_KEY` | **Optional** | reCAPTCHA v2 Secret Key |
|
||||||
| `CROWDSEC_VERSION` | **Optional** | Specify a version of the bouncer to install instead of using the latest release, for example `v1.0.0`. Must be a valid [release tag](https://github.com/crowdsecurity/cs-nginx-bouncer/tags). **Does not support versions older than v1.0.0**.
|
| `CROWDSEC_VERSION` | **Optional** | Specify a version of the bouncer to install instead of using the latest release, for example `v1.0.0`. Must be a valid [release tag](https://github.com/crowdsecurity/cs-nginx-bouncer/tags). **Does not support versions older than v1.0.0**.
|
||||||
|
| `CROWDSEC_F2B_DISABLE` | **Optional** | Set to `true` to disable swag's built-in fail2ban service if you don't need it |
|
||||||
| | | |
|
| | | |
|
||||||
|
|
||||||
The variables need to remain in place while you are using the mod. If you remove **required** variables the bouncer will be disabled the next time you recreate the container, if you remove **optional** variables the associated features will be disabled the next time you recreate the container.
|
The variables need to remain in place while you are using the mod. If you remove **required** variables the bouncer will be disabled the next time you recreate the container, if you remove **optional** variables the associated features will be disabled the next time you recreate the container.
|
||||||
|
|||||||
@@ -79,4 +79,10 @@ rm -rf \
|
|||||||
/tmp/crowdsec \
|
/tmp/crowdsec \
|
||||||
/tmp/crowdsec.tar.gz
|
/tmp/crowdsec.tar.gz
|
||||||
|
|
||||||
|
# Disable f2b if requested
|
||||||
|
if [[ $CROWDSEC_F2B_DISABLE == "true" ]]; then
|
||||||
|
echo "**** Disabling fail2ban Service ****"
|
||||||
|
touch /etc/services.d/fail2ban/down
|
||||||
|
fi
|
||||||
|
|
||||||
echo "**** Successfully configured CrowdSec nginx Bouncer ${CROWDSEC_VERSION} ****"
|
echo "**** Successfully configured CrowdSec nginx Bouncer ${CROWDSEC_VERSION} ****"
|
||||||
|
|||||||
Reference in New Issue
Block a user