writefreely
An open source platform for building a writing space on the web.
- Category: Apps
- Status: 2, beta
- Image:
writefreely, 1, Co-op Cloud custom image - Healthcheck: 3
- Backups: 1
- Email: 3
- Tests: No
- SSO: 1
Basic usage
- Set up Docker Swarm and
abra - Deploy
coop-cloud/traefik abra app new writefreelyabra app config <domain>- be sure to change<domain>to something that resolves to your coop-cloud server.- For more info about the config options, see the writefreely docs.
abra app deploy <domain>- Once it's running, if you are not using SSO, set up a local admin user by running this command:
abra app run <domain> app -- writefreely -c /usr/share/writefreely/config.ini user create --admin <some-username>:<some-password>
Keycloak setup
For the OAUTH_HOST config, it uses this format: https://keycloak.example.com/auth/realms/<your realm>/protocol/openid-connect.
To set the client secret: abra app secret insert <domain> oauth_client_secret v1
Authentik setup
If you've set up Authentik for SSO, you can integrate it into Writefreely by running the following steps:
-
In the Authentik app, uncomment the Writefreely configuration to enable the associated blueprint:
COMPOSE_FILE="$COMPOSE_FILE:compose.writefreely.yml" WRITEFREELY_DOMAIN=writefreely.example.com SECRET_WRITEFREELY_ID_VERSION=v1 SECRET_WRITEFREELY_SECRET_VERSION=v1 APP_ICONS="writefreely:~/.abra/recipes/authentik/icons/writefreely.png" WRITEFREELY_APPGROUP="$GROUP_DOCUMENTATION" -
Also in Authentik, generate the client id/secret pair.
abra app secret generate <authentik_app_name> writefreely_id v1abra app secret generate <authentik_app_name> writefreely_secret v1 -
Uncomment and properly set the configs for Authentik in
abra app config <domain>. -
Set the client id/secret that were generated previously, by running:
abra app secret insert <domain> oauth_client_id v1abra app secret insert <domain> oauth_client_secret v1
MariaDB
By default, this recipe uses sqlite. If you wish to use MariaDB instead:
- When creating the app, you need the
--secretsflag:abra app new writefreely --secrets - Run
abra app config <domain>and follow the instructions to uncomment four lines. abra app deploy <domain>
Acknowledgements
Thanks to @knoflook for packaging work ❤️