feat: add default tls config
This commit is contained in:
parent
2d5d632d16
commit
6779207e36
@ -13,6 +13,10 @@ services:
|
||||
# Global HTTP -> HTTPS
|
||||
- "--entrypoints.web.http.redirections.entryPoint.to=websecure"
|
||||
- "--entrypoints.web.http.redirections.entryPoint.scheme=https"
|
||||
# default TLS configuration
|
||||
- "--entrypoints.websecure.http.tls.certresolver=letsencrypt"
|
||||
- "--entrypoints.websecure.http.tls.domains[0].main=esin.io"
|
||||
- "--entrypoints.websecure.http.tls.domains[0].sans=*.esin.io"
|
||||
# Enable dashboard
|
||||
- "--api.dashboard=true"
|
||||
- "--ping"
|
||||
@ -52,7 +56,7 @@ services:
|
||||
- "traefik.http.routers.dashboard.middlewares=dashboard-auth"
|
||||
- "traefik.http.middlewares.dashboard.compress=true"
|
||||
- "traefik.http.middlewares.dashboard.compress.excludedcontenttypes=text/event-stream"
|
||||
- "traefik.http.middlewares.dashboard-auth.basicauth.users=traefik:$$apr1$$XDijc7ic$$RofeDix3G.lYtoomdQ6TD."
|
||||
- "traefik.http.middlewares.dashboard-auth.basicauth.users=${AUTH_USER}:${AUTH_PASS}"
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
- ./acme.json:/etc/acme/acme.json
|
||||
@ -62,4 +66,4 @@ services:
|
||||
|
||||
networks:
|
||||
traefik:
|
||||
external: true
|
||||
external: true
|
Loading…
x
Reference in New Issue
Block a user