-
Notifications
You must be signed in to change notification settings - Fork 1
Description
When all the containers first come up, there are in an empty clean slate state.
Please write a script that creates whatever config files & db records are needed to point Nextcloud to Authentik for authentication.
The script should live in either nextcloud/bin/link_to_authentik.sh and/or authentik/bin/link_to_nextcloud, whatever you think is best. The script should take the following inputs as environment variables:
COMPANY_NAME=SelfHostYourTechCOMPANY_DOMAIN=selfhostyour.techADMIN_USERNAME=adminADMIN_PASSWORD=<random if not provided>
It should programatically perform the steps described here on the Nextcloud side and the Authentik side:
-
https://docs.goauthentik.io/docs/add-secure-apps/providers/saml/
-
β You can write directly to other app's
./<appname>/.envfiles to apply config to them on their next restart -
β You can add/remove/modify the filesystem and database files directly under
./<appname>/data/... -
β You can start other apps and use use their REST/RPC APIs to configure them
-
β The script cannot expect any human interaction or require UI steps
Use these powers wisely.
Subtasks
- Make sure
./authentik/docker-compose.ymlworks to spin up a fresh empty autentik server - Make sure
./nextcloud/docker-compose.ymlworks to spin up a fresh empty Nextcloud server with the - Make sure you can access the REST APIs / endpoints / filesystems of both as needed to automate the setup process