From d60abfe6deec35c32f4cc404eda77335d9077660 Mon Sep 17 00:00:00 2001 From: Moritz Date: Mon, 23 Nov 2026 17:26:54 +0100 Subject: [PATCH] add NEXTCLOUD_SUB_MODE env to nextcloud blueprint --- .env.sample | 3 +-- abra.sh | 2 +- compose.nextcloud.yml | 2 +- nextcloud.yaml.tmpl | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.env.sample b/.env.sample index 2537db2..47a1128 100644 --- a/.env.sample +++ b/.env.sample @@ -21,7 +21,6 @@ AUTHENTIK_LOG_LEVEL=info # AUTHENTIK_FOOTER_LINKS='[{"name": "My Organization","href":"https://example.com"}]' # AUTHENTIK_WORKER__THREADS=1 - ## Outpost Integration # COMPOSE_FILE="$COMPOSE_FILE:compose.outposts.yml" # COMPOSE_FILE="$COMPOSE_FILE:compose.outposts.ldap.yml" @@ -32,7 +31,6 @@ AUTHENTIK_BOOTSTRAP_EMAIL=admin@example.com # The admin password will be overwritten by set_admin_pass() use this env only to skip the manual setup process #AUTHENTIK_BOOTSTRAP_PASSWORD=changemeimmediately! - ## EMAIL AUTHENTIK_EMAIL__HOST=smtp AUTHENTIK_EMAIL__PORT=587 @@ -91,6 +89,7 @@ COPY_ASSETS="$COPY_ASSETS icon.png|app:/web/dist/assets/icons/" # NEXTCLOUD_APPGROUP="$GROUP_ORGANISATION" # NEXTCLOUD_APPNAME=Files # NEXTCLOUD_APPDESCRIPTION=Nextcloud +# NEXTCLOUD_SUB_MODE=user_username # COMPOSE_FILE="$COMPOSE_FILE:compose.wordpress.yml" # WORDPRESS_DOMAIN=wordpress.example.com diff --git a/abra.sh b/abra.sh index 84575f6..4590ad1 100644 --- a/abra.sh +++ b/abra.sh @@ -5,7 +5,7 @@ export FLOW_INVALIDATION_VERSION=v2 export FLOW_RECOVERY_VERSION=v2 export FLOW_TRANSLATION_VERSION=v3 export SYSTEM_BRAND_VERSION=v4 -export NEXTCLOUD_VERSION=v6 +export NEXTCLOUD_VERSION=v7 export WORDPRESS_VERSION=v10 export MATRIX_VERSION=v6 export WEKAN_VERSION=v8 diff --git a/compose.nextcloud.yml b/compose.nextcloud.yml index b24cc59..877efca 100644 --- a/compose.nextcloud.yml +++ b/compose.nextcloud.yml @@ -9,6 +9,7 @@ services: - NEXTCLOUD_APPNAME - NEXTCLOUD_APPDESCRIPTION - NEXTCLOUD_APPGROUP + - NEXTCLOUD_SUB_MODE=${NEXTCLOUD_SUB_MODE:-user_username} configs: - source: nextcloud target: /blueprints/nextcloud.yaml @@ -21,7 +22,6 @@ secrets: external: true name: ${STACK_NAME}_nextcloud_secret_${SECRET_NEXTCLOUD_SECRET_VERSION} - configs: nextcloud: name: ${STACK_NAME}_nextcloud_${NEXTCLOUD_VERSION} diff --git a/nextcloud.yaml.tmpl b/nextcloud.yaml.tmpl index 9076f46..a2c0195 100644 --- a/nextcloud.yaml.tmpl +++ b/nextcloud.yaml.tmpl @@ -38,7 +38,7 @@ entries: - !Find [authentik_providers_oauth2.scopemapping, [scope_name, profile]] - !KeyOf nextcloud_group_mapping signing_key: !Find [authentik_crypto.certificatekeypair, [name, authentik Self-signed Certificate]] - sub_mode: user_username + sub_mode: !Env [NEXTCLOUD_SUB_MODE, user_username] token_validity: days=30 grant_types: - authorization_code