docs: document ALLOW_SHARED_LINKS_PUBLIC and update default to false (#524)

Shared links now require authentication by default per LibreChat
commit 0cbf4aa. Updated dotenv docs to reflect the new default (false)
and added a Configuration section to the shareable links feature page
explaining both ALLOW_SHARED_LINKS and ALLOW_SHARED_LINKS_PUBLIC.

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Lionel Ringenbach
2026-03-06 16:09:38 -08:00
committed by GitHub
parent 39d2de754d
commit f8360a7147
2 changed files with 18 additions and 1 deletions

View File

@@ -636,7 +636,7 @@ Configure shared conversation links functionality.
<OptionTable
options={[
['ALLOW_SHARED_LINKS', 'boolean', 'Enable or disable shared conversation links. Default: true.', 'ALLOW_SHARED_LINKS=true'],
['ALLOW_SHARED_LINKS_PUBLIC', 'boolean', 'Allow shared links to be publicly accessible. Default: true.', 'ALLOW_SHARED_LINKS_PUBLIC=true'],
['ALLOW_SHARED_LINKS_PUBLIC', 'boolean', 'Allow shared links to be publicly accessible without authentication. Default: false.', 'ALLOW_SHARED_LINKS_PUBLIC=false'],
]}
/>

View File

@@ -153,6 +153,23 @@ Access the Shared Links Management dashboard under the Data Controls section of
- **Search & filter**: Quickly find and view the content of specific shared links
- **Revoke access**: Delete links to immediately stop sharing
## Configuration
Shareable links behavior is controlled by the following environment variables in your `.env` file:
- **`ALLOW_SHARED_LINKS`** (default: `true`) — Enables or disables the shared links feature entirely. Set to `false` to prevent users from creating shared links.
- **`ALLOW_SHARED_LINKS_PUBLIC`** (default: `false`) — Controls whether shared links can be accessed without authentication. By default, recipients must be logged in to view shared conversations. Set to `true` to allow public (unauthenticated) access.
```bash
# Enable shared links (default)
ALLOW_SHARED_LINKS=true
# Require authentication to view shared links (default)
ALLOW_SHARED_LINKS_PUBLIC=false
```
> **Note:** For full environment variable reference, see the [.env Configuration](/docs/configuration/dotenv#shared-links) page.
## Frequently Asked Questions
**Q: Can recipients respond to shared conversations?**