Loading deployment/questionnaire/questionnaire.dat +1 −0 Original line number Diff line number Diff line Loading @@ -20,6 +20,7 @@ DBPASS=@@@generate@@@:20@ DRIVE_SMTP_PASSWORD=@@@generate@@@:16@ POSTFIXADMIN_SSH_PASSWORD=@@@generate@@@:20@ CREATE_ACCOUNT_PASSWORD=@@@generate@@@:20@ ECLOUD_ACCOUNTS_SECRET=@@@generate@@@:20@ PFA_SUPERADMIN_PASSWORD=1@@@generate@@@:16@2 Loading scripts/init-repo.sh +1 −0 Original line number Diff line number Diff line Loading @@ -174,6 +174,7 @@ mkdir -p /mnt/repo-base/volumes/nextcloud/{html,data,log} mkdir "/mnt/repo-base/volumes/nextcloud/html/config/" cat /mnt/repo-base/templates/nextcloud/config.php | sed "s/@@@DOMAIN@@@/$DOMAIN/g" | \ sed "s/@@@DRIVE_SMTP_PASSWORD@@@/$DRIVE_SMTP_PASSWORD/g" | sed "s/@@@PFDB_DB@@@/$PFDB_DB/g" | \ sed "s/@@@ECLOUD_ACCOUNTS_SECRET@@@/$ECLOUD_ACCOUNTS_SECRET/g" | \ sed "s/@@@PFDB_USR@@@/$PFDB_USR/g" | sed "s/@@@DBPASS@@@/$PFDB_DBPASS/g" > \ "/mnt/repo-base/volumes/nextcloud/html/config/config.php" chown -R www-data: "/mnt/repo-base/volumes/nextcloud/" Loading templates/docker-compose/docker-compose.yml +3 −0 Original line number Diff line number Diff line Loading @@ -108,6 +108,9 @@ services: - SMTP_HOST=${SMTP_HOST} - SMTP_FROM=${SMTP_FROM} - SMTP_PW=${SMTP_PW} - WELCOME_SMTP_FROM=${SMTP_FROM} - WELCOME_SMTP_PW=${SMTP_PW} - ECLOUD_ACCOUNTS_SECRET=${ECLOUD_ACCOUNTS_SECRET} - SMTP_PORT=587 - NEXTCLOUD_ADMIN_USER=${NEXTCLOUD_ADMIN_USER} - NEXTCLOUD_ADMIN_PASSWORD=${NEXTCLOUD_ADMIN_PASSWORD} Loading templates/nextcloud/config.php +3 −0 Original line number Diff line number Diff line Loading @@ -43,6 +43,9 @@ $CONFIG = array ( 'mail_smtpport' => '587', 'mail_smtpsecure' => 'tls', 'installed' => false, 'ecloud-accounts' => [ 'secret' => '@@@ECLOUD_ACCOUNTS_SECRET@@@' ], 'user_backend_sql_raw' => array ( 'db_type' => 'mariadb', Loading upgrade-guides/upgrade-to-21.0.9.12.md +20 −0 Original line number Diff line number Diff line Loading @@ -5,6 +5,26 @@ - Set the welcome image to `registry.gitlab.e.foundation/e/infra/docker-welcome:2.5.0` - Set the nextcloud image to `registry.gitlab.e.foundation/e/infra/ecloud/nextcloud/selfhost:selfhost-21-0-9-12` - Set the nginx image to `nginx:1.20-alpine` - Add `ecloud-accounts` secret to secure the `ecloud-accounts` API: - Generate a secure secret string - Add it to `volumes/nextcloud/html/config/config.php` with an entry like: - ```php ... 'ecloud-accounts' => [ 'secret' => 'secure-secret' ], ... - Add this to your `.env` file as `ECLOUD_ACCOUNTS_SECRET=secure-secret` - Add it to the environment variables of `welcome` in `docker-compose.yml`: - ``` environment: ... - ECLOUD_ACCOUNTS_SECRET=${ECLOUD_ACCOUNTS_SECRET} ... ``` - Run `docker-compose pull` - Run `docker-compose up -d` - Enable the `ecloud-accounts` app: Loading Loading
deployment/questionnaire/questionnaire.dat +1 −0 Original line number Diff line number Diff line Loading @@ -20,6 +20,7 @@ DBPASS=@@@generate@@@:20@ DRIVE_SMTP_PASSWORD=@@@generate@@@:16@ POSTFIXADMIN_SSH_PASSWORD=@@@generate@@@:20@ CREATE_ACCOUNT_PASSWORD=@@@generate@@@:20@ ECLOUD_ACCOUNTS_SECRET=@@@generate@@@:20@ PFA_SUPERADMIN_PASSWORD=1@@@generate@@@:16@2 Loading
scripts/init-repo.sh +1 −0 Original line number Diff line number Diff line Loading @@ -174,6 +174,7 @@ mkdir -p /mnt/repo-base/volumes/nextcloud/{html,data,log} mkdir "/mnt/repo-base/volumes/nextcloud/html/config/" cat /mnt/repo-base/templates/nextcloud/config.php | sed "s/@@@DOMAIN@@@/$DOMAIN/g" | \ sed "s/@@@DRIVE_SMTP_PASSWORD@@@/$DRIVE_SMTP_PASSWORD/g" | sed "s/@@@PFDB_DB@@@/$PFDB_DB/g" | \ sed "s/@@@ECLOUD_ACCOUNTS_SECRET@@@/$ECLOUD_ACCOUNTS_SECRET/g" | \ sed "s/@@@PFDB_USR@@@/$PFDB_USR/g" | sed "s/@@@DBPASS@@@/$PFDB_DBPASS/g" > \ "/mnt/repo-base/volumes/nextcloud/html/config/config.php" chown -R www-data: "/mnt/repo-base/volumes/nextcloud/" Loading
templates/docker-compose/docker-compose.yml +3 −0 Original line number Diff line number Diff line Loading @@ -108,6 +108,9 @@ services: - SMTP_HOST=${SMTP_HOST} - SMTP_FROM=${SMTP_FROM} - SMTP_PW=${SMTP_PW} - WELCOME_SMTP_FROM=${SMTP_FROM} - WELCOME_SMTP_PW=${SMTP_PW} - ECLOUD_ACCOUNTS_SECRET=${ECLOUD_ACCOUNTS_SECRET} - SMTP_PORT=587 - NEXTCLOUD_ADMIN_USER=${NEXTCLOUD_ADMIN_USER} - NEXTCLOUD_ADMIN_PASSWORD=${NEXTCLOUD_ADMIN_PASSWORD} Loading
templates/nextcloud/config.php +3 −0 Original line number Diff line number Diff line Loading @@ -43,6 +43,9 @@ $CONFIG = array ( 'mail_smtpport' => '587', 'mail_smtpsecure' => 'tls', 'installed' => false, 'ecloud-accounts' => [ 'secret' => '@@@ECLOUD_ACCOUNTS_SECRET@@@' ], 'user_backend_sql_raw' => array ( 'db_type' => 'mariadb', Loading
upgrade-guides/upgrade-to-21.0.9.12.md +20 −0 Original line number Diff line number Diff line Loading @@ -5,6 +5,26 @@ - Set the welcome image to `registry.gitlab.e.foundation/e/infra/docker-welcome:2.5.0` - Set the nextcloud image to `registry.gitlab.e.foundation/e/infra/ecloud/nextcloud/selfhost:selfhost-21-0-9-12` - Set the nginx image to `nginx:1.20-alpine` - Add `ecloud-accounts` secret to secure the `ecloud-accounts` API: - Generate a secure secret string - Add it to `volumes/nextcloud/html/config/config.php` with an entry like: - ```php ... 'ecloud-accounts' => [ 'secret' => 'secure-secret' ], ... - Add this to your `.env` file as `ECLOUD_ACCOUNTS_SECRET=secure-secret` - Add it to the environment variables of `welcome` in `docker-compose.yml`: - ``` environment: ... - ECLOUD_ACCOUNTS_SECRET=${ECLOUD_ACCOUNTS_SECRET} ... ``` - Run `docker-compose pull` - Run `docker-compose up -d` - Enable the `ecloud-accounts` app: Loading