Skip to content

Commit

Permalink
Fix infinite redirection when path root contains query params (#203)
Browse files Browse the repository at this point in the history
* rebase from #168

* update traefik redirection rules
  • Loading branch information
marwanehcine authored May 5, 2023
1 parent c78b7dd commit 8d4acde
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docker-compose.override.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ services:
)
- "traefik.http.routers.traefik-redirect.priority=10"
- "traefik.http.routers.traefik-redirect.middlewares=add-trailing-slash@docker"
- "traefik.http.middlewares.add-trailing-slash.redirectregex.regex=^https?://(.*)/(.+)"
- "traefik.http.middlewares.add-trailing-slash.redirectregex.regex=^https?://^[^?]+$/(.+)"
- "traefik.http.middlewares.add-trailing-slash.redirectregex.replacement=https://$${1}/$${2}/"
- "traefik.http.middlewares.add-trailing-slash.redirectregex.permanent=false"

Expand All @@ -119,6 +119,7 @@ services:
# - "traefik.enable=true"
# - "traefik.http.routers.cas.tls=true"
# - "traefik.http.routers.cas.rule=Host(`georchestra-127-0-1-1.traefik.me`) && PathPrefix(`/cas`)"

smtp:
image: camptocamp/smtp-sink:latest
volumes:
Expand Down
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ services:
- .envs-hosts
- .envs-database-georchestra


# uncomment for oauth 2.0
# cas:
# image: georchestra/cas:latest
Expand Down

0 comments on commit 8d4acde

Please sign in to comment.