Added dev config

This commit is contained in:
Alexis Couvreur
2020-10-22 19:51:17 +02:00
parent bf8b367943
commit 3aaa0649ac
4 changed files with 56 additions and 7 deletions

View File

@@ -1,10 +1,10 @@
http:
middlewares:
ondemand-60:
ondemand-timeout-60:
plugin:
dev:
serviceUrl: http://ondemand:10000
traefik-ondemand-plugin:
name: TRAEFIK_HACKATHON_whoami
serviceUrl: http://ondemand:10000
timeout: 60
services:
@@ -19,5 +19,5 @@ http:
entryPoints:
- "http"
middlewares:
- ondemand-60
- ondemand-timeout-60
service: "whoami"

23
config_dev.yml Normal file
View File

@@ -0,0 +1,23 @@
http:
middlewares:
ondemand-60:
plugin:
dev:
serviceUrl: http://ondemand:10000
name: TRAEFIK_HACKATHON_whoami
timeout: 60
services:
whoami:
loadBalancer:
servers:
- url: "http://whoami:80"
routers:
whoami:
rule: PathPrefix(`/whoami`)
entryPoints:
- "http"
middlewares:
- ondemand-60
service: "whoami"

View File

@@ -6,9 +6,10 @@ api:
insecure: true
experimental:
devPlugin:
goPath: /plugins/go
moduleName: github.com/acouvreur/traefik-ondemand-plugin
plugins:
traefik-ondemand-plugin:
moduleName: "github.com/acouvreur/traefik-ondemand-plugin"
version: "v0.0.2"
entryPoints:
http:

25
traefik_dev.yml Executable file
View File

@@ -0,0 +1,25 @@
pilot:
token: "$TRAEFIK_PILOT_TOKEN"
api:
dashboard: true
insecure: true
experimental:
devPlugin:
goPath: /plugins/go
moduleName: github.com/acouvreur/traefik-ondemand-plugin
entryPoints:
http:
address: ":80"
forwardedHeaders:
insecure: true
providers:
docker:
swarmMode: true
exposedByDefault: false
file:
filename: "/etc/traefik/config.yml"
watch: true