fix(url): strip quotes from SERVER_BASE

This commit is contained in:
2026-01-15 07:39:22 +01:00
parent 87a19ce458
commit 3904254142
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ def _env_bool(name: str, default: bool) -> bool:
return default
return val.strip().lower() in ("true", "yes", "on")
LIBRARY_DIR = Path(os.environ.get("CONTENT_BASE_DIR", "/library")).resolve()
LIBRARY_DIR = Path(os.environ.get("CONTENT_BASE_DIR", "/library").strip('"').strip("'")).resolve()
PAGE_SIZE = int(os.environ.get("PAGE_SIZE", "50"))
# Public base URL used to build absolute links in the OPDS feed
+2
View File
@@ -2,6 +2,8 @@
### Environment Variables
**Note:** Environment variable values should be specified without quotes. For example, use `SERVER_BASE=http://example.com` not `SERVER_BASE="http://example.com"`. The application will automatically strip surrounding quotes if present.
| Variable | Default | Required | Description |
|-----------------------|-------------|----------|-------------|
| `CONTENT_BASE_DIR` | `/library` | Required | Path inside the container where your comics are stored (mounted volume). |