docs: fix up post-install docs

This commit is contained in:
decentral1se 2021-12-09 16:16:23 +01:00
parent 515f110b2f
commit 52c29939ee
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
1 changed files with 3 additions and 16 deletions

View File

@ -29,26 +29,13 @@
## Post-install
```
./first_deploy.sh <app name>
passwd=`abra app run pen.lumbung.space db cat /run/secrets/db_password`
abra app run pen.lumbung.space db mysql -u writeas -p$passwd writefreely
ALTER TABLE `oauth_users` MODIFY `access_token` varchar(2048);
```
## Keycloak setup
Until [this](https://github.com/writefreely/writefreely/issues/516) is fixed, you have to migrate the db yourself.
Get into a db shell with the following:
```
db_passwd=$(abra app run <app name> db cat /run/secrets/db_password)
abra app run <app name> db mysql -u writeas -p"$db_passwd" writefreely
```
Run the migration:
```
ALTER TABLE 'oauth_users' MODIFY 'access_token' varchar(2048);
```
For the **OAUTH_HOST** config, it uses this format: `https://keycloak.domain.here/auth/realms/<your realm>/protocol/openid-connect`.
## Acknowledgements