feat: add traefik
This commit is contained in:
19
traefik/conf/dashboard.yml
Normal file
19
traefik/conf/dashboard.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
http:
|
||||
middlewares:
|
||||
dashboard-basicauth:
|
||||
basicauth:
|
||||
users:
|
||||
- "traefik:$apr1$XDijc7ic$RofeDix3G.lYtoomdQ6TD."
|
||||
dashboard-mw-chain:
|
||||
chain:
|
||||
middlewares:
|
||||
- "gzip-compress"
|
||||
- "dashboard-basicauth"
|
||||
routers:
|
||||
dashboard-web:
|
||||
entrypoints: web
|
||||
rule: "Host(`localhost`) && (PathPrefix(`/api`) || PathPrefix(`/dashboard`))"
|
||||
service: "api@internal"
|
||||
middlewares:
|
||||
- "dashboard-mw-chain"
|
||||
|
9
traefik/conf/global.yml
Normal file
9
traefik/conf/global.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
http:
|
||||
middlewares:
|
||||
websecure-redirectscheme:
|
||||
redirectScheme:
|
||||
scheme: "https"
|
||||
permanent: true
|
||||
gzip-compress:
|
||||
compress:
|
||||
excludedcontenttypes: "text/event-stream"
|
Reference in New Issue
Block a user