feat: add default tls config
This commit is contained in:
parent
2d5d632d16
commit
6779207e36
@ -13,6 +13,10 @@ services:
|
|||||||
# Global HTTP -> HTTPS
|
# Global HTTP -> HTTPS
|
||||||
- "--entrypoints.web.http.redirections.entryPoint.to=websecure"
|
- "--entrypoints.web.http.redirections.entryPoint.to=websecure"
|
||||||
- "--entrypoints.web.http.redirections.entryPoint.scheme=https"
|
- "--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
|
# Enable dashboard
|
||||||
- "--api.dashboard=true"
|
- "--api.dashboard=true"
|
||||||
- "--ping"
|
- "--ping"
|
||||||
@ -52,7 +56,7 @@ services:
|
|||||||
- "traefik.http.routers.dashboard.middlewares=dashboard-auth"
|
- "traefik.http.routers.dashboard.middlewares=dashboard-auth"
|
||||||
- "traefik.http.middlewares.dashboard.compress=true"
|
- "traefik.http.middlewares.dashboard.compress=true"
|
||||||
- "traefik.http.middlewares.dashboard.compress.excludedcontenttypes=text/event-stream"
|
- "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:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
- ./acme.json:/etc/acme/acme.json
|
- ./acme.json:/etc/acme/acme.json
|
||||||
|
Loading…
x
Reference in New Issue
Block a user