generated from traefik/plugindemo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
49 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,52 @@ | ||
# DDNSwhitelist | ||
# DDNSwhitelist - Traefik Plugin | ||
|
||
Dynamic DNS whitelist plugin for Traefik. | ||
|
||
## About | ||
|
||
:warning: This traefik plugin is currently in development! | ||
The `DDNSwhitelist` plugin for Traefik allows you to whitelist dynamic DNS (DDNS) hosts. Requests from IP addresses that do not resolve to the specified DDNS hosts will be denied. | ||
|
||
Please do not use it yet! | ||
The existing plugins can be browsed into the [Plugin Catalog](https://plugins.traefik.io). | ||
|
||
## Installation | ||
|
||
To install the `DDNSwhitelist` plugin, add the following configuration to your Traefik static configuration: | ||
|
||
```yaml | ||
experimental: | ||
plugins: | ||
ddnswhitelist: | ||
moduleName: "github.com/taskmedia/ddnswhitelist" | ||
version: v1.0.0 | ||
``` | ||
## Configuration | ||
Add the `DDNSwhitelist` middleware to your Traefik dynamic configuration: | ||
|
||
```yaml | ||
# Dynamic configuration | ||
http: | ||
routers: | ||
my-router: | ||
rule: host(`demo.localhost`) | ||
service: service-foo | ||
entryPoints: | ||
- web | ||
middlewares: | ||
- ddnswhitelist-router | ||
|
||
services: | ||
service-foo: | ||
loadBalancer: | ||
servers: | ||
- url: http://127.0.0.1:5000 | ||
|
||
middlewares: | ||
ddnswhitelist-router: | ||
plugin: | ||
ddnswhitelist: | ||
DdnsHostList: | ||
- my.router.ddns.tld | ||
``` |