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 and f-necas committed Feb 16, 2024
1 parent 5c7ca8c commit 875e03f
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 @@ -110,7 +110,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 @@ -120,6 +120,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 @@ -95,7 +95,6 @@ services:
- .envs-hosts
- .envs-database-georchestra


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

0 comments on commit 875e03f

Please sign in to comment.