Skip to content

Commit

Permalink
Fix traefik domain redirect for empty strings (#927)
Browse files Browse the repository at this point in the history
  • Loading branch information
YuryHrytsuk authored Jan 8, 2025
1 parent f9077d3 commit 7ce8eff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions services/traefik/docker-compose.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,9 @@ services:
###
# Domain redirects
###
{% set redirect_from_domains_list = TRAEFIK_DOMAINS_REDIRECT_FROM.split(',') %}
{% set redirect_to_domains_list = TRAEFIK_DOMAINS_REDIRECT_TO.split(',') %}
{% set redirect_is_permanent_list = TRAEFIK_DOMAINS_REDIRECT_IS_PERMANENT.split(',') %}
{% set redirect_from_domains_list = TRAEFIK_DOMAINS_REDIRECT_FROM.strip().split(',') if TRAEFIK_DOMAINS_REDIRECT_FROM.strip() else [] %}
{% set redirect_to_domains_list = TRAEFIK_DOMAINS_REDIRECT_TO.strip().split(',') if TRAEFIK_DOMAINS_REDIRECT_TO.strip() else [] %}
{% set redirect_is_permanent_list = TRAEFIK_DOMAINS_REDIRECT_IS_PERMANENT.strip().split(',') if TRAEFIK_DOMAINS_REDIRECT_IS_PERMANENT.strip() else [] %}
{% for ix in range(redirect_from_domains_list | length) %}
Expand Down

0 comments on commit 7ce8eff

Please sign in to comment.