|
2 | 2 |
|
3 | 3 | **Self-hosted Zotero WebUI Opensource Library + WebDAV-based PDF viewer **Avoid storage fees, keep privacy, and still enjoy a full browser-based Zotero library. |
4 | 4 |
|
| 5 | +## It is PoC |
| 6 | +It(v0.1.3) is still fully not properly works, please keep on watching to be ready for production. |
| 7 | + |
5 | 8 | --- |
6 | 9 |
|
7 | 10 | ## 🚀 Overview |
@@ -38,7 +41,7 @@ You get: |
38 | 41 |
|
39 | 42 | --- |
40 | 43 | ## Screenshot |
41 | | -[WebUI](./docs/assets/screenshot.png) |
| 44 | + |
42 | 45 |
|
43 | 46 | ## 🧩 Architecture |
44 | 47 |
|
@@ -180,8 +183,14 @@ The sample data generator creates keys like `SAMPLE1` and `SAMPLE2` under `sampl |
180 | 183 | - `.env.stage.example` → `.env.stage`: staging/NAS stack via `docker compose --env-file .env.stage up -d` (defaults to GHCR `:main` tags). |
181 | 184 | - `.env.portainer.example` → `.env.portainer`: Portainer stack env file (same vars as staging) when deploying through the UI. |
182 | 185 | - `.env` remains ignored; keep real secrets/paths out of the repo. |
183 | | -- Metadata config (build-time for Web Library): optional `ZOTERO_API_KEY`, `ZOTERO_API_AUTHORITY_PART`, `ZOTERO_USER_SLUG`, `ZOTERO_USER_ID` to point the Web Library at zotero.org or an on-prem metadata source. Set in your env file before building the Web Library image. |
| 186 | +- Metadata config (runtime templating for Web Library): `ZOTERO_API_KEY`, `ZOTERO_API_AUTHORITY_PART`, `ZOTERO_USER_SLUG`, `ZOTERO_USER_ID`, `ZOTERO_INCLUDE_MY_LIBRARY`, `ZOTERO_INCLUDE_USER_GROUPS`, and `ZOTERO_LIBRARIES_INCLUDE_JSON` let you point at zotero.org or an on-prem metadata source. Set these in your env file so the container renders `index.html` with the correct API host/user/groups. |
| 187 | + |
| 188 | +### Metadata configuration & troubleshooting |
184 | 189 |
|
| 190 | +- Set `ZOTERO_USER_SLUG`/`ZOTERO_USER_ID` and `ZOTERO_API_AUTHORITY_PART` to the metadata host you want (defaults to zotero.org). |
| 191 | +- Control which libraries load with `ZOTERO_INCLUDE_MY_LIBRARY`, `ZOTERO_INCLUDE_USER_GROUPS`, and `ZOTERO_LIBRARIES_INCLUDE_JSON` (JSON array of `{ "key": "g123", "name": "Team", "isGroupLibrary": true }`). |
| 192 | +- Validate templating by viewing page source for `zotero-web-library-config`; wrong host/key/ID typically shows up as `Failed to fetch` in the browser console. |
| 193 | +- For on-prem hosts, ensure the metadata API is reachable from inside the container and that CORS allows the Web Library origin. |
185 | 194 | --- |
186 | 195 |
|
187 | 196 | ## 🛠 Components |
|
0 commit comments