Skip to content

Commit

Permalink
added docker fileConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
nichlaes committed Jan 10, 2024
1 parent e3c7df9 commit 36a8013
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions servers/config/gateway/dynamic/fileConfig.docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
http:
routers:
dtaas:
entryPoints:
- http
rule: 'Host(`localhost`)'
middlewares:
- basic-auth
service: dtaas

user1:
entryPoints:
- http
rule: 'Host(`localhost`) && PathPrefix(`/user1`)'
middlewares:
- basic-auth
service: user1

libms:
entryPoints:
- http
rule: 'Host(`localhost`) && PathPrefix(`/lib`)'
service: libms


# Middleware: Basic authentication
middlewares:
basic-auth:
basicAuth:
usersFile: "/etc/traefik/auth"
removeHeader: true


services:
dtaas:
loadBalancer:
servers:
- url: "http://client:4000"

user1:
loadBalancer:
servers:
- url: "http://ml-workspace-user1:8080"

libms:
loadBalancer:
servers:
- url: "http://libms:4001"

0 comments on commit 36a8013

Please sign in to comment.