fixed wrong Træfik router names

This commit is contained in:
Bryan Joshua Pedini 2021-08-13 15:14:51 +02:00
parent 995c37cb05
commit 6274fbf5a1

View File

@ -9,15 +9,15 @@ services:
### Section HTTP ### Section HTTP
- traefik.routers.http-totp_bjphoster_com.entrypoints=http - traefik.routers.http-totp_bjphoster_com.entrypoints=http
# redirect to HTTPS only # redirect to HTTPS only
- traefik.http.routers.http-get_bjphoster_com.middlewares=http-to-https - traefik.http.routers.http-totp_bjphoster_com.middlewares=http-to-https
- traefik.http.routers.http-get_bjphoster_com.rule=Host(`totp.bjphoster.com`) - traefik.http.routers.http-totp_bjphoster_com.rule=Host(`totp.bjphoster.com`)
### Section HTTPS ### Section HTTPS
- traefik.http.routers.https-get_bjphoster_com.entrypoints=https - traefik.http.routers.https-totp_bjphoster_com.entrypoints=https
# configure the exposed service # configure the exposed service
- traefik.http.routers.https-get_bjphoster_com.rule=Host(`totp.bjphoster.com`) - traefik.http.routers.https-totp_bjphoster_com.rule=Host(`totp.bjphoster.com`)
# of course, enable TLS and it's certificate provider # of course, enable TLS and it's certificate provider
- traefik.http.routers.https-get_bjphoster_com.tls=true - traefik.http.routers.https-totp_bjphoster_com.tls=true
- traefik.http.routers.https-get_bjphoster_com.tls.certresolver=letsencrypt - traefik.http.routers.https-totp_bjphoster_com.tls.certresolver=letsencrypt
networks: networks:
- traefik-proxy - traefik-proxy
restart: unless-stopped restart: unless-stopped