10000 Merge pull request #41 from homeylab/update_prereq · homeylab/bookstack-file-exporter@f46dc61 · GitHub
[go: up one dir, main page]

Skip to content

Commit f46dc61

Browse files
authored
Merge pull request #41 from homeylab/update_prereq
update readme for suggestion by @intrepidsilence
2 parents 5bffeb2 + 80749cb commit f46dc61

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Table of Contents
77
- [Using This Application](#using-this-application)
88
- [Run via Pip](#run-via-pip)
99
- [Run via Docker](#run-via-docker)
10-
- [Authentication](#authentication)
10+
- [Authentication and Permissions](#authentication-and-permissions)
1111
- [Configuration](#configuration)
1212
- [Backup Behavior](#backup-behavior)
1313
- [General](#general)
@@ -174,9 +174,16 @@ docker run \
174174
| `config` | `/export/config/config.yml` | A valid configuration file |`-v /local/yourpath/config.yml:/export/config/config.yml:ro`|
175175
| `dump` | `/export/dump` | Directory to place exports. **This is optional when using remote storage option(s)**. Omit if you don't need a local copy. | `-v /local/yourpath/bkps:/export/dump` |
176176

177-
### Authentication
178-
**Note visibility of pages is based on user**, so use a user that has access to pages you want to back up.
177+
### Authentication and Permissions
178+
#### Permissions
179+
**Note visibility of pages is based on user**, so use a user that has read access to pages and content you want to back up. *The role assigned to the user* should have the additional permissions for target pages and their content:
180+
- `read` for all images and attachments
181+
- For most users this may already be set - may be required to be set depending on storage option used
182+
- `Export Content` (This can be found in `Edit Role --> System Permissions`)
183+
- For most users this may already set - may be required to be set if using custom roles
184+
- If not set, you may see page contents showing as a HTML login page, as reported in this [issue](https://github.com/homeylab/bookstack-file-exporter/issues/35)
179185

186+
#### Token Authentication
180187
Ref: [https://demo.bookstackapp.com/api/docs#authentication](https://demo.bookstackapp.com/api/docs#authentication)
181188

182189
Provide a tokenId and a tokenSecret as environment variables or directly in the configuration file.
@@ -188,7 +195,7 @@ Env variables for credentials will take precedence over configuration file optio
188195
**For object storage authentication**, find the relevant sections further down in their respective sections.
189196

190197
### Configuration
191-
_Ensure [Authentication](#authentication) has been set up beforehand for required credentials._ For a simple example to run quickly, refer to the one in the [Using This Application](#using-this-application) section. A full example is also shown below with descriptions. Optionally, look at `examples/` folder of the github repo for more examples.
198+
_Ensure [Authentication](#authentication-and-permissions) has been set up beforehand for required credentials._ For a simple example to run quickly, refer to the one in the [Using This Application](#using-this-application) section. A full example is also shown below with descriptions. Optionally, look at `examples/` folder of the github repo for more examples.
192199

193200
For object storage configuration, find more information in their respective sections
194201
- [Minio](#minio-backups)

0 commit comments

Comments
 (0)
0