janeczku / calibre-web

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

[Feature Request] Support for Custom Base URL Prefix in Calibre-Web (Flask Backend) #3225

Closed T1t4m1un closed 5 days ago

T1t4m1un commented 6 days ago

Description

I am using Calibre-Web with Traefik as a reverse proxy, routing the service under a custom path prefix (e.g., /calibre-web). While the Traefik configuration correctly proxies requests to the service, Calibre-Web returns a 404 error due to the application expecting root-level access. So I require the ability to configure a custom base URL (/calibre-web) to support routing under a prefixed path without affecting the root path or other services.

Feature Request

Enable Calibre-Web to operate under a configurable base URL (e.g., /calibre-web)

Why This Feature is

Potential Impact on Other Users

This feature would be optional and configurable, allowing users to retain root access or specify a path prefix as needed.

OzzieIsaacs commented 5 days ago

It‘s possible to configure a proxy to work flawlessly with calibre-web, I know traefik config is a bit tricky (I did it once and will not do it again, there is a example in the wiki: https://github.com/janeczku/calibre-web/wiki/Setup-Reverse-Proxy#traefik-200)