Skip to content

Commit

Permalink
chore: add initial README
Browse files Browse the repository at this point in the history
  • Loading branch information
fty4 committed Oct 1, 2024
1 parent 711f109 commit 57b4292
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 7 deletions.
7 changes: 3 additions & 4 deletions .traefik.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ iconPath: .assets/logo.png

import: github.com/taskmedia/ddnswhitelist

summary: 'A middleware that allows you to specify Dynamic DNS to IP whitelist'
summary: 'A middleware that allows you to whitelist on a dynamic DNS'

testData:
Headers:
X-Demo: test
X-URL: '{{URL}}'
ddnsHostList:
- my.router.ddns.tld
49 changes: 46 additions & 3 deletions README.md
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
```

0 comments on commit 57b4292

Please sign in to comment.