From 5c3c6e61c2b0da7ca157b75a55e6d33a6053ba38 Mon Sep 17 00:00:00 2001 From: Froz Date: Sat, 4 Nov 2023 16:17:37 -0700 Subject: [PATCH] updated outline-wiki notes --- outline-wiki/README.md | 46 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/outline-wiki/README.md b/outline-wiki/README.md index b89bea8..4f6c845 100644 --- a/outline-wiki/README.md +++ b/outline-wiki/README.md @@ -210,3 +210,49 @@ After creation, under the anonymous tab add two access rules: `avatar` and `publ That’s it! Now login to outline with your keycloak account. And you should be able to drag and drop images to your documents! + + +## Troubleshooting + +You may have to run + +`sudo chown -R systemd-coredump:systemd-coredump psqldatabase-data/` + +on your psqldatabase-data folder if you get the error (on docker-compose logs -f) that says + +`initdb: error: could not change permissions of directory "/var/lib/postgresql/data": Operation not permitted` + +## Migrating Domain Notes +back up .env, docker-compose.yml, and docker.env + +edit only docker.env (if you plan on keeping same database + keycloak) +``` +URL=https://outline.stoplagging.com +PORT=3000 + +OIDC_CLIENT_ID=outline.stoplagging.com +``` + +If new instance with new database edit +``` +AWS_S3_UPLOAD_BUCKET_URL=https://outlinedata.stoplagging.com +``` + +If new instance with new keycloak edit + +``` +OIDC_AUTH_URI=https://auth.stoplagging.com/realms/master/protocol/openid-connect/auth +OIDC_TOKEN_URI=https://auth.stoplagging.com/realms/master/protocol/openid-connect/token +OIDC_USERINFO_URI=https://auth.stoplagging.com/realms/master/protocol/openid-connect/userinfo +``` + +docker-compose up again +don't forget to edit caddy +docker exec -w /etc/caddy caddy caddy reload + +Now in keycloak go to Clients +export the original domain name +edit the .json +find & replace all old domain name with new domain name in text editor. +Edit description +reimport new domain name! \ No newline at end of file