traefik/teamspeak: Remove priority from default redirect + set endpoint

This patch removes the priority on the default HTTP->HTTPS redirect rule defined on the traefik container, as all traffic should always be redirected to HTTPS.
So, to fix the teamspeak redirect, the endpoint for the redirect was also correctly set.
This commit is contained in:
saibotk 2020-08-13 04:25:50 +02:00
parent 59ef64db90
commit 100ef46288
No known key found for this signature in database
GPG key ID: A3299C587D5DF523
2 changed files with 1 additions and 1 deletions

View file

@ -40,6 +40,7 @@ services:
{% if teamspeak_traefik_redirect_enabled %} {% if teamspeak_traefik_redirect_enabled %}
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.routers.teamspeak.rule=Host(`{{ teamspeak_traefik_domain }}`)" - "traefik.http.routers.teamspeak.rule=Host(`{{ teamspeak_traefik_domain }}`)"
- "traefik.http.routers.teamspeak.entrypoints=websecure"
- "traefik.http.routers.teamspeak.middlewares=ts3server-redirect" - "traefik.http.routers.teamspeak.middlewares=ts3server-redirect"
- "traefik.http.routers.teamspeak.tls.certresolver={{ teamspeak_traefik_certresolver }}" - "traefik.http.routers.teamspeak.tls.certresolver={{ teamspeak_traefik_certresolver }}"
- "traefik.http.middlewares.ts3server-redirect.redirectscheme.scheme=ts3server" - "traefik.http.middlewares.ts3server-redirect.redirectscheme.scheme=ts3server"

View file

@ -72,7 +72,6 @@ services:
- "traefik.enable=true" - "traefik.enable=true"
{% if traefik_https_redirect_all %} {% if traefik_https_redirect_all %}
- "traefik.http.routers.http_catchall.rule=HostRegexp(`{any:.+}`)" - "traefik.http.routers.http_catchall.rule=HostRegexp(`{any:.+}`)"
- "traefik.http.routers.http_catchall.priority=1"
- "traefik.http.routers.http_catchall.entrypoints=web" - "traefik.http.routers.http_catchall.entrypoints=web"
- "traefik.http.routers.http_catchall.middlewares=https_redirect" - "traefik.http.routers.http_catchall.middlewares=https_redirect"
{% endif %} {% endif %}