lasuite-docs
Docs (part of La Suite Numerique) for Co-op Cloud
- Category: Apps
- Status: 2
- Image:
lasuite/docs, 4, upstream - Healthcheck: No
- Backups: No
- Email: 3
- Tests: No
- SSO: 3
Quick start
abra app new lasuite-docs --secretsabra app config <app-name>abra app deploy <app-name>abra app cmd <app-name> backend migrateabra app restart <app-name> minio-bootstrap(Note: this will appear to fail, but probably worked! Checkabra app logs <app-name> minio-bootstrap)
You should then be able to visit the landing page of your app, but not yet to login. To login, you need to deploy and integrate single sign on (described below in the "Configure Authentication" section).
Configure Authentication
lasuite-docs requires an OpenID Connect (OIDC) single sign-on provider; deployment has been tested with Keycloak, which we recommend, or you could also try Authentik, both of which are installable using Co-op Cloud.
Instructions for integrating keycloak with docs after deploying it, are below.
-
In keycloak, create a realm (save the name of this realm, you will need it later)
-
Within that realm, create a client
- during client creation, ensure:
- Standard flow: True
- Direct access grants: True
- Authorization: True
- Client authentication: True
- PKCE method: none
- during client creation, ensure:
-
Within the client tab, for your client, click on "Credentials". Click on the the copy button to copy "Client Secret" so you can insert this into your coop cloud deployment in the next step.
-
abra app secret insert <app-name> oidc_rpcs v2 <yoursecret> -
abra app config <app-name># set SECRET_OIDC_RPCS_VERSION=v2 -
Now create a user for this client within keycloak. Within the Users tab, click "Add User". Any username and password works. Save this info.
You then additionally need to modify the config of docs to point to your keycloak deployment.
abra app config <app-name>
OIDC_REALM=<the realm you configured in keycloak>
AUTH_DOMAIN=<the domain of your keycloak instance>
OIDC_RP_CLIENT_ID=<yourkeycloakclientid>
then redeploy docs:
abra app deploy <app-name> --force
at this point, when you go to your docs url, you shoud then be able to click "login" and login with the username and password for the user you created in keycloak.
you can make additional users in keycloak for this "client" and they will all be able to login to docs and collaborate.
Configure E-Mail
Using abra app config <app-name> you need to set the following for your smtp server:
DJANGO_EMAIL_HOST="yourmailserver.com"
DJANGO_EMAIL_PORT=1025
DJANGO_EMAIL_FROM=noreply@example.com
You then need to insert the password for your smtp server as a secret:
abra app secret insert <app-name> email_pass v2 <youremailpass>abra app config <app-name># set SECRET_EMAIL_PASS_VERSION=v2
Then redeploy the app, and automated e-mail sending should work:
abra app deploy <app-name> --force