about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-10-09 13:38:40 +0200
committerEmile <hanemile@protonmail.com>2019-10-09 13:38:40 +0200
commitd67f466f19ee48686f5e591923bc2a5ec8ca496a (patch)
tree9302178dec7bc3d9788444e1b7c56347aed5aa67
parentc7414da7f05f9900d667b537aacd072aabbfc990 (diff)
register https
-rw-r--r--docker-compose.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
index 44b7b0d..b101a50 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -48,6 +48,13 @@ services:
             - "traefik.enable=true"
             - "traefik.http.routers.register.entrypoints=web"
             - "traefik.http.routers.register.rule=Host(`register.${HOSTNAME}`)"
+            - "traefik.http.middlewares.register-https-redirect.redirectscheme.scheme=https"
+            - "traefik.http.routers.register.middlewares=register-https-redirect"
+            - "traefik.http.routers.register-secure.entrypoints=websecure"
+            - "traefik.http.routers.register-secure.rule=Host(`register.${HOSTNAME}`)"
+            - "traefik.http.routers.register-secure.tls=true"
+            - "traefik.http.routers.register-secure.tls.certresolver=mytlschallenge"
+            - "traefik.http.routers.register-secure.service=register"
             - "traefik.http.services.register.loadbalancer.server.port=8081"
         networks:
             - circus