From b1588f23180eed7c414b550dff418983ae087ce6 Mon Sep 17 00:00:00 2001 From: Viktor Scharf Date: Tue, 27 Oct 2026 15:45:29 +0100 Subject: [PATCH] feat: add OC_ENABLE_GUEST_LINKS setting (#409) Guest links are disabled by default in OpenCloud 9. Expose the switch in docker-compose.yml and document in .env.example that the feature needs the notifications service with SMTP and, on existing installations, the auth-guest service account from 'opencloud init --diff'. --- .env.example | 11 +++++++++++ docker-compose.yml | 2 ++ 2 files changed, 13 insertions(+) diff --git a/.env.example b/.env.example index 0b25c93..b678c2b 100644 --- a/.env.example +++ b/.env.example @@ -421,6 +421,17 @@ KC_DB_PASSWORD= # Keep it below the stop_grace_period set in yjs/yjs.yml. #YJS_SHUTDOWN_GRACE_PERIOD_MS= +### Guest Links Settings ### +# Guest links let users share files with an email address that has no account. +# The guest gets the link and later a PIN by email, so this needs a working +# notifications service: add "notifications" to START_ADDITIONAL_SERVICES and +# set at least SMTP_HOST, SMTP_PORT and SMTP_SENDER in the SMTP settings above. +# Existing installations: add the auth-guest service account to the config by +# running "opencloud init --diff" and applying the patch it writes to +# /etc/opencloud/opencloud.config.patch. +# Defaults to "false" +#OC_ENABLE_GUEST_LINKS=true + ### Radicale Setting ### # Radicale is a small open-source CalDAV (calendars, to-do lists) and CardDAV (contacts) server. # When enabled OpenCloud is configured as a reverse proxy for Radicale, providing all authenticated diff --git a/docker-compose.yml b/docker-compose.yml index 997bcdf..ec3758b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -54,6 +54,8 @@ services: OC_PASSWORD_POLICY_MIN_UPPERCASE_CHARACTERS: "${OC_PASSWORD_POLICY_MIN_UPPERCASE_CHARACTERS:-1}" OC_PASSWORD_POLICY_MIN_DIGITS: "${OC_PASSWORD_POLICY_MIN_DIGITS:-1}" OC_PASSWORD_POLICY_MIN_SPECIAL_CHARACTERS: "${OC_PASSWORD_POLICY_MIN_SPECIAL_CHARACTERS:-1}" + # guest links + OC_ENABLE_GUEST_LINKS: "${OC_ENABLE_GUEST_LINKS:-false}" # default language for services/WebUI; defaults to English, language code (ISO 639-1, e.g. de, en, fr) OC_DEFAULT_LANGUAGE: ${DEFAULT_LANGUAGE} volumes: