Skip to content

Commit 2405966

Browse files
authored
Update README.md
1 parent 19b043b commit 2405966

File tree

1 file changed

+2
-41
lines changed

1 file changed

+2
-41
lines changed

README.md

Lines changed: 2 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@ experimental:
2020
static.yml (production)
2121
2222
```yaml
23+
experimental:
2324
plugins:
2425
block-regex-urls:
2526
moduleName: 'github.com/blueshift-labs/traefik-block-regex-urls'
26-
version: 'v0.0.1'
27+
version: 'v0.0.2'
2728
```
2829
2930
dynamic-configuration.yml
@@ -42,43 +43,3 @@ http:
4243
statusCode: 404
4344
```
4445
45-
docker-compose.yml
46-
47-
```yaml
48-
services:
49-
traefik:
50-
image: traefik
51-
volumes:
52-
- /var/run/docker.sock:/var/run/docker.sock
53-
- /docker/config/traefik/traefik.yml:/etc/traefik/traefik.yml
54-
- /docker/config/traefik/dynamic-configuration.yml:/etc/traefik/dynamic-configuration.yml
55-
- /plugin/traefik-block-regex-urls:/plugins-local/src/github.com/blueshift-labs/traefik-block-regex-urls/
56-
ports:
57-
- "80:80"
58-
hello:
59-
image: traefik/whoami
60-
labels:
61-
- traefik.enable=true
62-
- traefik.http.routers.hello.entrypoints=http
63-
- traefik.http.routers.hello.rule=Host(`hello.localhost`)
64-
- traefik.http.services.hello.loadbalancer.server.port=80
65-
- traefik.http.routers.hello.middlewares=my-plugin@file
66-
```
67-
68-
## Sample configuration
69-
70-
- `regex`: List of regex values to use for url blocking.
71-
- `exact_match`: List of exact matching strings to use for url blocking.
72-
- `statusCode`: Return value of the status code.
73-
74-
```yaml
75-
my-block-regex-urls:
76-
plugin:
77-
block-regex-urls:
78-
exact_match:
79-
- "some_string_to_block"
80-
regex:
81-
- "^something.mydomain.tld\\/scan\\?uid=12345(.*)&gid=6789(.*)"
82-
- "^something.mydomain.tld\\/scan\\?uid=345$"
83-
statusCode: 418
84-
```

0 commit comments

Comments
 (0)