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