fix(url): strip quotes from SERVER_BASE

This commit is contained in:
2026-01-15 07:40:12 +01:00
parent 3904254142
commit 8654289ad5
+2 -2
View File
@@ -11,10 +11,10 @@ LIBRARY_DIR = Path(os.environ.get("CONTENT_BASE_DIR", "/library").strip('"').str
PAGE_SIZE = int(os.environ.get("PAGE_SIZE", "50"))
# Public base URL used to build absolute links in the OPDS feed
SERVER_BASE = os.environ.get("SERVER_BASE", "http://localhost:8080").rstrip("/")
SERVER_BASE = os.environ.get("SERVER_BASE", "http://localhost:8080").strip('"').strip("'").rstrip("/")
# Optional path prefix if you serve the app under a subpath (e.g. /comics)
URL_PREFIX = os.environ.get("URL_PREFIX", "").rstrip("/")
URL_PREFIX = os.environ.get("URL_PREFIX", "").strip('"').strip("'").rstrip("/")
if URL_PREFIX == "/":
URL_PREFIX = ""