mirror of
https://github.com/LibreChat-AI/librechat.ai.git
synced 2026-03-27 10:48:32 +07:00
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:
committed by
GitHub
parent
39d2de754d
commit
f8360a7147
@@ -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'],
|
||||
]}
|
||||
/>
|
||||
|
||||
|
||||
@@ -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?**
|
||||
|
||||
Reference in New Issue
Block a user