Set up TLS with Basic Auth
This commit is contained in:
@@ -17,10 +17,10 @@ entryPoints:
|
||||
web:
|
||||
address: :80
|
||||
http:
|
||||
# redirections:
|
||||
# entryPoint:
|
||||
# to: websecure
|
||||
# scheme: https
|
||||
redirections:
|
||||
entryPoint:
|
||||
to: websecure
|
||||
scheme: https
|
||||
websecure:
|
||||
address: :443
|
||||
http:
|
||||
|
||||
6
services/traefik/volumes/config/tls.yaml
Normal file
6
services/traefik/volumes/config/tls.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
tls:
|
||||
stores:
|
||||
default:
|
||||
defaultCertificate:
|
||||
certFile: /run/secrets/traefik.cert
|
||||
keyFile: /run/secrets/traefik.key
|
||||
@@ -3,3 +3,9 @@ http:
|
||||
traefik:
|
||||
rule: Host(`traefik.dev.dedicated.contact`)
|
||||
service: api@internal
|
||||
middlewares: {}
|
||||
#- traefik-auth
|
||||
middlewares:
|
||||
traefik-auth:
|
||||
basicAuth:
|
||||
usersFile: /run/secrets/htpasswd
|
||||
|
||||
Reference in New Issue
Block a user