From cca502525a0f73245db0cfbb098833fb648a6071 Mon Sep 17 00:00:00 2001 From: Viktor Scharf Date: Wed, 17 Dec 2025 08:36:48 +0100 Subject: [PATCH] admin-docs: add password configuration for writable public links --- README.md | 2 -- docs/admin/configuration/remove-password-link.md | 10 ++++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0c4df019..7cb62b07 100644 --- a/README.md +++ b/README.md @@ -38,8 +38,6 @@ pnpm run start --locale de > ⚠️ Switching languages via the language switcher is currently not supported. - - ## Build ```bash diff --git a/docs/admin/configuration/remove-password-link.md b/docs/admin/configuration/remove-password-link.md index 8ee10f89..cb98b85c 100644 --- a/docs/admin/configuration/remove-password-link.md +++ b/docs/admin/configuration/remove-password-link.md @@ -18,10 +18,15 @@ Open the environment configuration file located in your `opencloud-compose` dire nano opencloud-compose/.env ``` -Add the following environment variable to disable the password requirement for public links: +Add the following environment variables to configure password requirements for public links: ```env +# Disable password requirement for all public links (read-only and writable) OC_SHARING_PUBLIC_SHARE_MUST_HAVE_PASSWORD=false + +# Optional: Enforce password only for writable public links +# Note: This setting only applies when OC_SHARING_PUBLIC_SHARE_MUST_HAVE_PASSWORD is set to false +OC_SHARING_PUBLIC_WRITEABLE_SHARE_MUST_HAVE_PASSWORD=true ``` ## Restart Docker Services @@ -35,7 +40,8 @@ docker compose up -d ## Result -The system no longer enforces a password when creating public share links. +- **`OC_SHARING_PUBLIC_SHARE_MUST_HAVE_PASSWORD=false`**: The system no longer enforces a password when creating public share links (both read-only and writable). +- **`OC_SHARING_PUBLIC_WRITEABLE_SHARE_MUST_HAVE_PASSWORD=true`**: If the first variable is set to `false`, this option allows you to still enforce passwords specifically for writable public shares while keeping read-only shares password-free. :::note This change applies globally to all public shares created after the restart.