Skip to content

Commit 4485617

Browse files
Merge pull request #120 from julienloizelet/feat/timeout-config
Feat/timeout config
2 parents 31a4d9b + 8f02e1d commit 4485617

31 files changed

+83
-76
lines changed

.github/workflows/end-to-end-auto-prepend-test-suite.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848

4949
- name: Install DDEV
5050
env:
51-
DDEV_VERSION: v1.21.1
51+
DDEV_VERSION: v1.21.4
5252
run: |
5353
# @see https://ddev.readthedocs.io/en/stable/#installationupgrade-script-linux-and-macos-armarm64-and-amd64-architectures
5454
sudo apt-get -qq update

.github/workflows/end-to-end-test-suite.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848

4949
- name: Install DDEV
5050
env:
51-
DDEV_VERSION: v1.21.1
51+
DDEV_VERSION: v1.21.4
5252
run: |
5353
# @see https://ddev.readthedocs.io/en/stable/#installationupgrade-script-linux-and-macos-armarm64-and-amd64-architectures
5454
sudo apt-get -qq update

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,11 @@ jobs:
107107
fi
108108
109109
- name: Create Tag ${{ github.event.inputs.tag_name }}
110-
uses: actions/github-script@v3
110+
uses: actions/github-script@v6
111111
with:
112112
github-token: ${{ github.token }}
113113
script: |
114-
github.git.createRef({
114+
github.rest.git.createRef({
115115
owner: context.repo.owner,
116116
repo: context.repo.repo,
117117
ref: "refs/tags/${{ github.event.inputs.tag_name }}",

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en)
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
8+
## [1.11.0](https://github.com/crowdsecurity/cs-wordpress-bouncer/releases/tag/v1.11.0) - 2022-12-22
9+
[_Compare with previous release_](https://github.com/crowdsecurity/cs-wordpress-bouncer/compare/v1.10.0...v1.11.0)
10+
11+
### Added
12+
- Add LAPI request timeout setting (default to 120 seconds)
13+
---
14+
715
## [1.10.0](https://github.com/crowdsecurity/cs-wordpress-bouncer/releases/tag/v1.10.0) - 2022-12-01
816
[_Compare with previous release_](https://github.com/crowdsecurity/cs-wordpress-bouncer/compare/v1.9.0...v1.10.0)
917
### Changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
}
2020
},
2121
"require": {
22-
"crowdsec/bouncer": "0.34.0",
22+
"crowdsec/bouncer": "0.35.0",
2323
"symfony/polyfill-mbstring": "1.20.0",
2424
"symfony/service-contracts": "2.4.1"
2525
},

composer.lock

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crowdsec.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Plugin URI: https://github.com/crowdsecurity/cs-wordpress-bouncer
55
* Description: Safer Together. Protect your WordPress application with CrowdSec.
66
* Tags: crowdsec-bouncer, wordpress, security, firewall, captcha, ip-scanner, ip-blocker, ip-blocking, ip-address, ip-database, ip-range-check, crowdsec, ban-hosts, ban-management, anti-hacking, hacker-protection, captcha-image, captcha-generator, captcha-generation, captcha-service
7-
* Version: 1.10.0
7+
* Version: 1.11.0
88
* Author: CrowdSec
99
* Author URI: https://www.crowdsec.net/
1010
* Github: https://github.com/crowdsecurity/cs-wordpress-blocker
@@ -13,7 +13,7 @@
1313
* Requires PHP: 7.2
1414
* Requires at least: 4.9
1515
* Tested up to: 6.1
16-
* Stable tag: 1.10.0
16+
* Stable tag: 1.11.0
1717
* Text Domain: crowdsec-wp
1818
* First release: 2021.
1919
*/

docs/DEVELOPER.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,8 @@ __We will suppose here that you want to install WordPress 5.9. Please change "5.
5454

5555
#### DDEV installation
5656

57-
This project is fully compatible with DDEV 1.21.1, and it is recommended to use this specific version.
58-
For the DDEV installation, please follow the [official instructions](https://ddev.readthedocs.io/en/stable/#installation).
59-
On a Linux distribution, you can run:
60-
```
61-
sudo apt-get -qq update
62-
sudo apt-get -qq -y install libnss3-tools
63-
curl -LO https://raw.githubusercontent.com/drud/ddev/master/scripts/install_ddev.sh
64-
bash install_ddev.sh v1.21.1
65-
rm install_ddev.sh
66-
```
57+
This project is fully compatible with DDEV 1.21.4, and it is recommended to use this specific version.
58+
For the DDEV installation, please follow the [official instructions](https://ddev.readthedocs.io/en/stable/users/install/ddev-installation/).
6759

6860
### Prepare DDEV WordPress environment
6961

docs/USER_GUIDE.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,19 @@ By default, `file_get_contents` method is used to call Local API. This method re
149149
Here, you can choose to use `cURL` requests instead. Beware that in this case, you need to have php `cURL` extension
150150
installed and enabled on your system.
151151

152+
153+
***
154+
155+
`Connection details → Local API request timeout`
156+
157+
By default, the maximum allowed time to perform a Local API request is 120 seconds. You can change this setting here.
158+
If you set a negative value, request timeout will be unlimited.
159+
152160
![Connection details](images/screenshots/config-bouncing.jpg)
153161

154162
***
155163

164+
156165
`Bouncing → Bouncing level`
157166

158167
Choose if you want to apply CrowdSec directives (`Normal bouncing`) or be more permissive (`Flex bouncing`).
19.2 KB
Loading

0 commit comments

Comments
 (0)