outline/README.md

75 lines
2.1 KiB
Markdown
Raw Normal View History

2021-11-21 19:23:23 +00:00
# Outline
2021-10-28 18:33:56 +00:00
2021-11-21 19:23:23 +00:00
Wiki and knowledge base for growing teams
2021-10-28 18:33:56 +00:00
<!-- metadata -->
* **Category**: Apps
2023-08-05 12:21:05 +00:00
* **Status**: 3, beta
* **Image**: [outlinewiki/outline](https://hub.docker.com/r/outlinewiki/outline), 4, upstream
* **Healthcheck**: No
2023-08-05 12:21:05 +00:00
* **Backups**: Yes
2023-06-20 10:58:15 +00:00
* **Email**: Yes
2023-08-05 12:21:05 +00:00
* **Tests**: 2
* **SSO**: 3 (OAuth)
2021-10-28 18:33:56 +00:00
<!-- endmetadata -->
## Basic usage
1. Set up Docker Swarm and [`abra`]
2. Deploy [`coop-cloud/traefik`]
2023-07-21 09:09:45 +00:00
3. `abra app new ${REPO_NAME}`
- **WARNING**: Choose "n" when `abra` asks if you'd like to generate secrets
2021-11-21 19:23:23 +00:00
4. `abra app config YOURAPPNAME` - be sure to change `$DOMAIN` to something that resolves to
2023-07-21 09:09:45 +00:00
your Docker swarm box. For Minio, you'll want:
- `AWS_ACCESS_KEY_ID=<minio username>`
- `AWS_REGION="us-east-1"`
- `AWS_S3_UPLOAD_BUCKET_URL=https://minio.example.com`
- `AWS_S3_UPLOAD_BUCKET_NAME=
2021-11-21 19:23:23 +00:00
5. `abra app deploy YOURAPPNAME`
7. Open the configured domain in your browser to finish set-up
2021-10-28 18:33:56 +00:00
[`abra`]: https://git.coopcloud.tech/coop-cloud/abra
[`coop-cloud/traefik`]: https://git.coopcloud.tech/coop-cloud/traefik
2022-01-06 11:38:58 +00:00
## Tips & Tricks
2023-07-21 09:09:45 +00:00
### Create an initial admin user
```
abra app cmd YOURAPPNAME app create_email_user test@example.com
```
2022-01-06 11:38:58 +00:00
### Post-deploy migration
```
2022-03-30 16:08:27 +00:00
abra app cmd YOURAPPNAME app migrate
2022-01-06 11:38:58 +00:00
```
2022-03-30 16:08:27 +00:00
_As of 2022-03-30, this requires `abra` RC version, run `abra upgrade --rc`._
2022-01-06 11:38:58 +00:00
### Setting up your `.env` config
2022-01-06 12:48:39 +00:00
Avoid the use of quotes (`"..."`) as much as possible, the NodeJS scripts flip out for some reason on some vars.
2022-01-07 08:05:45 +00:00
### Deleting a user (e.g. to fix SSO weirdness)
`abra app cmd YOURAPPNAME db delete_user <username-to-delete> <username-to-replace>`
Where `<username-to-delete>` is the username of the user to be removed, and
`<username-to-replace>` is the username of another user, to assign documents and
revisions to (instead of deleting them).
_As of 2022-03-30, this requires `abra` RC version, run `abra upgrade --rc`._
## Single Sign On with Keycloak
`abra app config YOURAPPNAME`, then uncomment everything in the `OIDC_` section.
Create a new client in Keycloak:
- **Valid Redirect URIs**: `https://YOURAPPDOMAIN/auth/oidc.callback`
`abra app deploy YOURAPPDOMAIN`