(Under Development): This middleware allows you to view detailed information about a connecting client when they access a container where this middleware is enabled.
The following provides examples for usage scenarios.
If you are utilizing a Traefik Static File, review the following examples:
## Static configurationexperimental:plugins:traefik-whois-middleware:moduleName: "github.com/Aetherinox/traefik-whois-middleware"version: "v0.1.0"
## Static configuration[experimental.plugins.traefik-whois-middleware]moduleName = "github.com/Aetherinox/traefik-whois-middleware"version = "v0.1.0"
## Static configuration--experimental.plugins.traefik-whois-middleware.modulename=github.com/Aetherinox/traefik-whois-middleware--experimental.plugins.traefik-whois-middleware.version=v0.1.0
If you are utilizing a Traefik Dynamic File, review the following examples:
# Dynamic configurationhttp:middlewares:whois:plugin:traefik-whois-middleware:debugLogs: false
# Dynamic configuration[http][http.middlewares][http.middlewares.whois][http.middlewares.whois.plugin][http.middlewares.whois.plugin.traefik-whois-middleware]debugLogs = false
# Dynamic configurationapiVersion: traefik.containo.us/v1alpha1kind: Middlewaremetadata:name: whoisspec:plugin:traefik-whois-middleware:debugLogs: false
This plugin accepts the following parameters:
Parameter | Description | Default | Type | Required |
---|---|---|---|---|
debugLogs | Shows debug logs in console | false | bool | ⭕ Optional |
If set true
, gives you a more detailed outline of what is going on behind the scenes in your console.
A few extra examples have been provided.
http:middlewares:whois:plugin:traefik-whois-middleware:debugLogs: truerouters:traefik-http:service: "traefik"rule: "Host(`yourdomain.com`)"entryPoints:- httpmiddlewares:- https-redirect@filetraefik-https:service: "traefik"rule: "Host(`yourdomain.com`)"entryPoints:- httpsmiddlewares:- whois@filetls:certResolver: cloudflaredomains:- main: "yourdomain.com"sans:- "*.yourdomain.com"
Traefik comes with the ability to install this plugin locally without fetching it from Github.
Download a local copy of this plugin to your server within your Traefik installation folder.
git clone https://github.com/Aetherinox/traefik-whois-middleware.git
If you are running Docker, you need to mount a new volume:
[!WARNING] The path to the plugin is case sensitive, do not change the casing of the folders, or the plugin will fail to load.
services:traefik:container_name: traefikimage: traefik:latestrestart: unless-stoppedvolumes:- ./traefik-whois-middleware:/plugins-local/src/github.com/Aetherinox/traefik-whois-middleware/
Open your Traefik Static File and change plugins
to localPlugins
.
# Static configurationexperimental:localPlugins:traefik-whois-middleware:moduleName: "github.com/Aetherinox/traefik-whois-middleware"version: "v0.1.0"
# Static configuration[experimental.localPlugins.traefik-whois-middleware]moduleName = "github.com/Aetherinox/traefik-whois-middleware"version = "v0.1.0"
For local installation, your dynamic file will contain the same contents as it would if you installed the plugin normally.
# Dynamic configurationhttp:middlewares:whois:plugin:traefik-whois-middleware:debugLogs: true
# Dynamic configuration[http][http.middlewares][http.middlewares.whois][http.middlewares.whois.plugin][http.middlewares.whois.plugin.traefik-whois-middleware]debugLogs = true
We are always looking for contributors. If you feel that you can provide something useful to Gistr, then we'd love to review your suggestion. Before submitting your contribution, please review the following resources:
Want to help but can't write code?
The following people have helped get this project going: