generated from coop-cloud/example
docs: fix up post-install docs
This commit is contained in:
parent
515f110b2f
commit
52c29939ee
19
README.md
19
README.md
|
@ -29,26 +29,13 @@
|
||||||
## Post-install
|
## 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
|
## 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`.
|
For the **OAUTH_HOST** config, it uses this format: `https://keycloak.domain.here/auth/realms/<your realm>/protocol/openid-connect`.
|
||||||
|
|
||||||
## Acknowledgements
|
## Acknowledgements
|
||||||
|
|
Loading…
Reference in New Issue