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
> In this dev environment, we use `--prefer-source` to be able to develop the bouncer library at the same time. Composer will may ask you for your own Github token to download sources instead of using dist packages.
35
+
> In this dev environment, we use `--prefer-source` to be able to develop the bouncer library at the same time. Composer may ask you for your own Github token to download sources instead of using dist packages.
36
36
37
37
38
38
### Quick `docker-compose` cheet sheet
@@ -68,13 +68,13 @@ Then re-run the stack.
68
68
69
69
### Try the plugin with another WordPress version
70
70
71
-
In start of 2021, [more than 90% of the wordpress websites](https://wordpress.org/about/stats/) was using WordPress versions:
72
71
73
72
The plugin is tested under each of these WordPress versions: `5.6`, `5.5`, `5.4`, `5.3`, `5.2`, `5.1`, `5.0`, `4.9`.
73
+
(Representing [more than 90% of the wordpress websites](https://wordpress.org/about/stats/))
74
74
75
75
#### Add support for a new WordPress version
76
76
77
-
This is a sheet cheet to help testing briefly the support:
77
+
This is a cheat sheet to help testing briefly the support:
78
78
79
79
```bash
80
80
@@ -94,11 +94,11 @@ docker-compose down && docker rmi wordpress-bouncer_wordpress<X.X>
94
94
docker-compose run wordpress<X.X> bash
95
95
```
96
96
97
-
> Note: The `DOCKER_HOST_IP`environnment variable is initialized via `source ./load-env-vars.sh`.
97
+
> Note: The `DOCKER_HOST_IP`environnement variable is initialized via `source ./load-env-vars.sh`.
98
98
99
99
### Plugin debug mode VS production mode
100
100
101
-
The debug mode throw verbose errors. The production hide every error to let users navigate in every edge cases.
101
+
The debug mode throws verbose errors. The production mode hides every error to let users navigate in every edge cases.
102
102
103
103
This plugin goes in debug mode when Wordpress debug mode is enabled.
104
104
@@ -107,9 +107,9 @@ To try the production mode of this plugin, just disable the wordpress debug mode
107
107
WORDPRESS_DEBUG: 1# Comment this line the simulate the production mode
108
108
```
109
109
110
-
#### Test linux behaviour from OSX or Windows
110
+
#### Test Linux behavior from OSX or Windows
111
111
112
-
You can test the Linux behaviour of this project using **Vagrant**.
112
+
You can test the Linux behavior of this project using **Vagrant**.
* In wp-admin, [ensure the bouncer is configured with **live** mode](http://localhost:8050/wp-admin/admin.php?page=crowdsec_plugin) (stream mode disabled).
18
18
19
-
### Discove the cache system
19
+
### Discover the cache system
20
20
21
-
* In a tab, visit the [public home](http://localhost:8050/). The way is free because LAPI said your IP is clean.
21
+
* In a tab, visit the [public home](http://localhost:8050/). You're allowed because LAPI said your IP is clean.
22
22
23
23
> To avoid latencies when the clean IP browse the website, the bouncer will keep this information in cache for 30 seconds (you can change this value in the [avdanced settings page](http://localhost:8050/wp-admin/admin.php?page=crowdsec_advanced_settings)). In other words, LAPI will not be requested to check this IP for the next 30 seconds.
24
24
25
-
* You can call the website many time as you want, the cache system will take relay during the ban period and so LAPI will not be disturbed. The ban decision will stay in cache for the full ban duration. Then the [public home](http://localhost:8050/) should be available again.
25
+
* You can call the website as many times as you want, the cache system will take relay during the ban period and so LAPI will not be disturbed. The ban decision will stay in cache for the full ban duration. Then the [public home](http://localhost:8050/) should be available again.
26
26
27
27
### Try ban remediation
28
28
29
-
*As we don't want this delay, to take in account immediately the last unban, feel free to [clear the cache in the wp-admin](http://localhost:8050/wp-admin/admin.php?page=crowdsec_plugin).
29
+
*If you want to skip this delay, feel free to [clear the cache in the wp-admin](http://localhost:8050/wp-admin/admin.php?page=crowdsec_plugin).
30
30
31
-
The `DOCKER_HOST_IP`environnment variable is initialized via a call to:
31
+
The `DOCKER_HOST_IP`environnement variable is initialized via a call to:
* The [public home](http://localhost:8050/) now request you to fill a captcha.
62
62
63
-
*While you fail resolving the captcha, you'll not be able to access the website.
63
+
*Unless you manage to solve the captcha, you'll not be able to access the website.
64
64
65
65
> Note: when you resolve the captcha in your browser, the associated PHP session is considered as sure.
66
-
> If you remove the captcha decision with `cscli`, then you add a new captcha decision for your IP, you'll not be prompted no more for the current PHP session. To view the captcha page, You can force using a new PHP session opening the front page with incognito mode.
66
+
> If you remove the captcha decision with `cscli`, then you add a new captcha decision for your IP, you'll not be prompted for the current PHP session. To view the captcha page, You can force using a new PHP session opening the front page with incognito mode.
67
67
68
68
## Stream mode, for the high traffic websites
69
69
70
-
With live mode, as you tried it just before, each time a user arrives to the website for the first time, a called is made to LAPI. If the traffic on your website is high, the bouncer will call LAPI very often.
70
+
With live mode, as you tried it just before, each time a user arrives to the website for the first time, a call is made to LAPI. If the traffic on your website is high, the bouncer will call LAPI very often.
71
71
72
-
To avoid this, LAPI offers a "stream" mode. The whole decisions list is updated for a predefined frequency. Let's try it!
72
+
To avoid this, LAPI offers a "stream" mode. The decisions list is updated at a predefined frequency and kept in cache. Let's try it!
73
73
74
-
> This bouncer used the WordPress cron system. For this demo purpose, we encourage you to [install the WP-Control plugin](http://localhost:8050/wp-admin/plugin-install.php?s=wp-control&tab=search&type=term), a plugin to view and control each Wordpress Cron task jobs.
74
+
> This bouncer uses the WordPress cron system. For demo purposes, we encourage you to [install the WP-Control plugin](http://localhost:8050/wp-admin/plugin-install.php?s=wp-control&tab=search&type=term), a plugin to view and control each Wordpress Cron task jobs.
* Then enable "stream" mode [right here](http://localhost:8050/wp-admin/admin.php?page=crowdsec_advanced_settings) and set the resync frequency to 30 seconds. If you installed WP-Control plugin, you can see that a new cron tak has just been added here http://localhost:8050/wp-admin/tools.php?page=crontrol_admin_manage_page.
84
84
85
-
* As the whole blocklist has just been loaded in cache (0 decision!), your IP is now free. The [public home](http://localhost:8050/) is now available.
85
+
* As the whole blocklist has just been loaded in cache (0 decision!), your IP is allowed. The [public home](http://localhost:8050/) is available.
Copy file name to clipboardExpand all lines: docs/install-with-docker-compose.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ Before all, create a `.env` file, using:
15
15
cp .env.example .env
16
16
```
17
17
18
-
> Note about PHP 8.0: WordPress official docker image [does not officially supports PHP 8.0](https://hub.docker.com/_/wordpress?tab=tags&page=1&ordering=last_updated) at this time. However, as the CrowdSec PHP Library does support PHP 8.0, there is a good chance that the pluggin will work fine with PHP 8.0, but we can not currently test it.
18
+
> Note about PHP 8.0: WordPress official docker image [does not officially supports PHP 8.0](https://hub.docker.com/_/wordpress?tab=tags&page=1&ordering=last_updated) at this time. However, as the CrowdSec PHP Library does support PHP 8.0, there is a good chance that the plugin will work fine with PHP 8.0, but we can not currently test it.
0 commit comments