Make CWA linking and uploads optional
This commit is contained in:
@@ -4,6 +4,7 @@ Bindery downloads web fiction into a
|
||||
[Calibre-Web-Automated](https://github.com/crocodilestick/Calibre-Web-Automated) (CWA) library and
|
||||
keeps the books up to date. It uses [FanFicFare](https://github.com/JimmXinu/FanFicFare), so it
|
||||
supports the sites that FanFicFare supports. The tested site is RoyalRoad.
|
||||
CWA is optional. You can download ePubs from Bindery without it.
|
||||
|
||||
## How it differs from FanFicFare
|
||||
|
||||
@@ -21,7 +22,7 @@ builds each ePub from that database.
|
||||
|
||||
## Quick start
|
||||
|
||||
**You need CWA v4.0.1 or later.** Older versions can import an update as a new book. See
|
||||
For uploads to CWA, use CWA v4.0.1 or later. Older versions can import an update as a new book. See
|
||||
"Limitations".
|
||||
|
||||
1. Get the code, and make the folder for Bindery's data.
|
||||
@@ -68,13 +69,31 @@ Environment variables set the configuration. **Restart the container after a cha
|
||||
| `SESSION_COOKIE_SECURE` | `true` if users reach Bindery only over HTTPS | `false` |
|
||||
| `TRUST_PROXY` | `true` if a reverse proxy sends the client address. See "Lockouts and sessions". | `false` |
|
||||
| `URL_BASE` | A path prefix, such as `/bindery`. See "Reverse proxy". | None |
|
||||
| `INGEST_DIR` | The CWA ingest folder | `/cwa-book-ingest` |
|
||||
| `INGEST_DIR` | The CWA ingest folder. If unset, all uploads stay paused. | None |
|
||||
| `CONFIG_DIR` | The story database and `personal.ini` | `/config` |
|
||||
| `TMP_DIR` | The folder for ePubs while Bindery builds them | `/tmp/bindery` |
|
||||
| `LOG_LEVEL` | The log level | `INFO` |
|
||||
|
||||
Separate the values in a list with commas.
|
||||
|
||||
### Without CWA
|
||||
|
||||
Leave `INGEST_DIR`, `CWA_URL` and `CALIBRE_DB_PATH` unset to run Bindery without CWA.
|
||||
Bindery still downloads chapters and builds ePubs. Download the books from each story page.
|
||||
|
||||
If you use the example Compose file, remove its CWA connection values, `INGEST_DIR` and the ingest volume mount.
|
||||
Use `AUTH_METHOD=local` or `proxy` for logins. On a private network, you can use `AUTH_METHOD=none`.
|
||||
|
||||
Without `INGEST_DIR`, Settings shows "Pause all uploads" checked and a highlighted explanation.
|
||||
You cannot clear that checkbox until you set `INGEST_DIR` and restart Bindery.
|
||||
If neither `CWA_URL` nor `CALIBRE_DB_PATH` is set, library linking is off and its checkbox is disabled.
|
||||
Set either value and restart Bindery to enable the checkbox. Bindery keeps your saved linking preference.
|
||||
Saved CWA book IDs still work for uploads if you configure an ingest folder.
|
||||
|
||||
To export ePubs for other software, set `INGEST_DIR` and turn off "Link books to CWA library" in Settings.
|
||||
Each build without a saved CWA book ID then puts a plain ePub in that folder, including updates.
|
||||
"Pause all uploads" still stops these exports. If CWA imports the files, updates will create duplicate books.
|
||||
|
||||
### Logins
|
||||
|
||||
`AUTH_METHOD` sets how users log in:
|
||||
@@ -274,7 +293,8 @@ from the library, Bindery links that book and imports its chapters from the ePub
|
||||
|
||||
### If Bindery cannot find the book
|
||||
|
||||
The update fails, and the story page shows the error "Bindery cannot find this story in CWA". The
|
||||
If library matching is on and configured, an update fails when Bindery cannot find the book.
|
||||
The story page shows the error "Cannot find this story in CWA. Link to library book, or send as new book." The
|
||||
chapters stay stored, and the next successful update includes them. This happens if:
|
||||
|
||||
- CWA did not import the ePub.
|
||||
@@ -288,18 +308,26 @@ To fix it, go to "Library link" on the story page, and do one of these:
|
||||
- Click "Send to CWA as a new book". Use this if CWA did not import the first version, or if you
|
||||
deleted the book.
|
||||
|
||||
### Hold uploads
|
||||
### Upload settings
|
||||
|
||||
Two settings on the Settings page stop books from going to CWA. Bindery still downloads the chapters
|
||||
and builds each book. The story list marks a book that waits with "held".
|
||||
The "Uploads to CWA" section controls library matching and uploads. Bindery still downloads chapters
|
||||
and builds books when uploads stop. The story list marks a built book with "held" only when it waits
|
||||
for approval, library linking is on, and uploads are not paused. Bindery keeps track of all unsent books.
|
||||
|
||||
- **Hold new links for approval.** Use this to catch a story that is linked to the wrong CWA book.
|
||||
- Link books to CWA library. This defaults to on when `CWA_URL` or `CALIBRE_DB_PATH` is set.
|
||||
Without either value, it stays off and disabled. Turn it off to skip matching with a configured library connection.
|
||||
Uploads use saved CWA book IDs when available. Without an ID, every build goes to `INGEST_DIR` as a plain ePub.
|
||||
If CWA imports these files, updates will create duplicate books. Settings and the story page show a highlighted warning.
|
||||
Changing this setting rebuilds unsent books unless uploads are paused.
|
||||
- **Hold new links for approval.** This setting applies only when library linking is on.
|
||||
Use this to catch a story that is linked to the wrong CWA book.
|
||||
The first upload of a new story waits for your approval. The first upload after a change of the
|
||||
library link also waits. This includes a link that you make, and a book that Bindery finds after
|
||||
the linked book is gone. The story page names the book that gets the update, or says that the
|
||||
story goes to CWA as a new book.
|
||||
- **Pause all uploads.** No book goes to CWA. When you turn the pause off, Bindery rebuilds each
|
||||
book that waits and sends it.
|
||||
- **Pause all uploads.** No book goes to CWA. This is always checked when `INGEST_DIR` is unset.
|
||||
When you turn the pause off, Bindery rebuilds unsent books. The other upload settings still apply.
|
||||
While paused, use "Approve" or "Approve as a new book instead" to save a decision without sending the book.
|
||||
|
||||
To approve a link, open the story page and do one of these:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user