You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Init the `composer.json` and download the `crowdsec/bouncer` library (just wait a short moment for the first docker image build)
78
78
79
79
```bash
80
-
docker-compose run app composer init --no-interaction --require crowdsec/bouncer:^0
80
+
docker-compose run app composer init --no-interaction
81
+
docker-compose run app composer require crowdsec/bouncer
81
82
docker-compose run app composer install
82
83
```
83
84
@@ -160,7 +161,7 @@ docker-compose run app php check-ip.php 2.3.4.5
160
161
161
162
For this IP, the cache system will never ask LAPI anymore for the duration of the decision.
162
163
163
-
Note: By default, a "bypass" decision is stored in the cache for 10 min. You can change this duration while instantiating the library.
164
+
Note: By default, a "bypass" decision is stored in the cache for 1 min. You can change this duration while instantiating the library.
164
165
165
166
Don't forget to restart the crowdsec container before continuing :-)
166
167
@@ -410,7 +411,7 @@ docker-compose run app php check-ip.php 2.3.4.5
410
411
411
412
> Even if CrowdSec LAPI is down, your bouncer can get the correct information.
412
413
413
-
To stay protected, you have to call the **refresh-cache.php** script periodically (ie each 15minutes). To do so you can use `crontab` like systems but we will not see that in this guide.
414
+
To stay protected, you have to call the **refresh-cache.php** script periodically (ie each 30seconds). To do so you can use `crontab` like systems but we will not see that in this guide.
Copy file name to clipboardExpand all lines: docs/configuration-reference.md
+3-2
Original file line number
Diff line number
Diff line change
@@ -20,8 +20,9 @@
20
20
// Optional. Cap the remediation to the selected one. Select from 'bypass' (minimum remediation), 'captcha' or 'ban' (maximum remediation). Defaults to 'ban'.
21
21
'max_remediation_level'=>'ban',
22
22
23
-
// Optional. Set the duration we keep in cache the fact that an IP is clean. In seconds. Defaults to 600 (10 minutes).
24
-
'cache_expiration_for_clean_ip'=>'600',
23
+
24
+
// Optional. Set the duration we keep in cache the fact that an IP is clean. In seconds. Defaults to 60 (1 minute).
0 commit comments