Notion Integration
Notion OAuth only supports HTTPS, so local deployments must use internal integration.
Set in .env:
NOTION_INTEGRATION_TYPE=internal
NOTION_INTERNAL_SECRET=your_internal_secret_here
For public integration (HTTPS only):
NOTION_INTEGRATION_TYPE=public
NOTION_CLIENT_SECRET=oauth_client_secret
NOTION_CLIENT_ID=oauth_client_id
Get credentials from Notion Integrations.
Text-to-Speech (TTS)
FFmpeg not installed error
OpenAI TTS requires FFmpeg for audio stream segmentation.
macOS:
Ubuntu:
sudo apt-get update
sudo apt-get install ffmpeg
CentOS:
sudo yum install epel-release
sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
sudo yum update
sudo yum install ffmpeg ffmpeg-devel
Windows:
- Download from FFmpeg website
- Extract and move to
C:\Program Files\
- Add FFmpeg bin directory to system PATH
- Verify:
ffmpeg -version
Model Tokenizers
Can’t load tokenizer for ‘gpt2’
Error:
Can't load tokenizer for 'gpt2'. If you were trying to load it from 'https://huggingface.co/models'...
Configure Hugging Face mirror or proxy in environment variables. See environment documentation for details.
Security Policies
Content Security Policy (CSP)
Enable CSP to reduce XSS attacks.
In .env:
CSP_WHITELIST=https://api.example.com,https://cdn.example.com
Add all domains used by your application (APIs, CDNs, analytics, etc.).
See MDN CSP documentation for more information.Last modified on June 25, 2026