fix(url): strip quotes from SERVER_BASE
This commit is contained in:
+2
-2
@@ -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 = ""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user