mirror of
https://github.com/fosrl/docs.git
synced 2025-05-13 05:40:41 +01:00
Update 03-geoblock.md
This commit is contained in:
parent
46c8f16df6
commit
a33c98402e
1 changed files with 5 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
# GeoBlock
|
# GeoBlock
|
||||||
|
|
||||||
##Installation
|
##Installation
|
||||||
|
|
||||||
1. Add following lines to your `/config/traefik/traefik_config.yml` file.
|
1. Add following lines to your `/config/traefik/traefik_config.yml` file.
|
||||||
```yaml
|
```yaml
|
||||||
entryPoints:
|
entryPoints:
|
||||||
|
@ -15,6 +16,7 @@ experimental:
|
||||||
moduleName: github.com/PascalMinder/geoblock
|
moduleName: github.com/PascalMinder/geoblock
|
||||||
version: v0.3.2
|
version: v0.3.2
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Add following lines to your `/config/traefik/dynamic_config.yml` file. With `blackListMode: false` GeoBlock is running in whitelist mode and just allows the added countries. Keep in mind to add countries when you are traveling. Find all county codes in the [documentation](https://github.com/PascalMinder/geoblock#full-plugin-sample-configuration).
|
2. Add following lines to your `/config/traefik/dynamic_config.yml` file. With `blackListMode: false` GeoBlock is running in whitelist mode and just allows the added countries. Keep in mind to add countries when you are traveling. Find all county codes in the [documentation](https://github.com/PascalMinder/geoblock#full-plugin-sample-configuration).
|
||||||
```yaml
|
```yaml
|
||||||
http:
|
http:
|
||||||
|
@ -37,13 +39,15 @@ http:
|
||||||
countries:
|
countries:
|
||||||
- DE # add/replace with your country code
|
- DE # add/replace with your country code
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Restart traefik
|
3. Restart traefik
|
||||||
```bash
|
```bash
|
||||||
docker restart traefik
|
docker restart traefik
|
||||||
```
|
```
|
||||||
|
|
||||||
## Testing
|
## Testing
|
||||||
Change
|
|
||||||
|
Change these options to true to see the GeoBlock activities in the traefik logs.
|
||||||
logLocalRequests: true
|
logLocalRequests: true
|
||||||
logAllowedRequests: true
|
logAllowedRequests: true
|
||||||
logApiRequests: true
|
logApiRequests: true
|
||||||
|
|
Loading…
Reference in a new issue