janeczku / calibre-web

:books: Web app for browsing, reading and downloading eBooks stored in a Calibre database
GNU General Public License v3.0
12.67k stars 1.33k forks source link

[BUG] Traefik v3 breaks calibre-web UI #3045

Closed zaggash closed 4 months ago

zaggash commented 4 months ago

Describe the bug/problem

All JS Jquery are not working.

The most obvious issues are the dropdown menu which are not working. Or the "+" menu in the admin area are not opening.

I paid attention to doc.traefik.io/traefik/master/migration/v2-to-v3 I tried to add back this option with this middleware: doc.traefik.io/traefik/master/migration/v2-to-v3/#content-type-auto-detection It didn't change anything. If anyone has an idea !

To Reproduce

Add traefik v3 in front of calibre web.

Logfile

No logs on the container

Expected behavior

The dropdown menu should open a show options The "+" menus in the admin area should expand

Environment (please complete the following information):

Calibre-web setup: https://github.com/zaggash/homelab/blob/main/unraid-homelab/media/calibre-web-compose.yaml Traefik setup: https://github.com/zaggash/homelab/blob/main/unraid-homelab/ingress/traefik/traefik-compose.yaml

Additional context

Cross posted on linuxserver repo https://github.com/linuxserver/docker-calibre-web/issues/294

zaggash commented 4 months ago

My bad after further testing, it seems to be something in my config. I'll dig further and report here the wrong setup

zaggash commented 4 months ago

For some reason the compression is causing issues in this version:

middlewares:
    compress-all:
      compress:
        excludedContentTypes:
          - text/event-stream

Closing