Skip to main content

Notion Integration

Notion OAuth only supports HTTPS, so local deployments must use internal integration.

Configure environment variables

Set in .env:
For public integration (HTTPS only):
Get credentials from Notion Integrations.

Text-to-Speech (TTS)

FFmpeg not installed error

OpenAI TTS requires FFmpeg for audio stream segmentation. macOS:
Ubuntu:
CentOS:
Windows:
  1. Download from FFmpeg website
  2. Extract and move to C:\Program Files\
  3. Add FFmpeg bin directory to system PATH
  4. Verify: ffmpeg -version

Model Tokenizers

Can’t load tokenizer for ‘gpt2’

Error:
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:
Add all domains used by your application (APIs, CDNs, analytics, etc.). See MDN CSP documentation for more information.

Application Templates

Custom templates

Currently not supported in community edition. Default templates are provided by Dify for reference only. Cloud version users can:
  • Add applications to workspace
  • Customize and save as personal applications
For enterprise custom templates, contact: business@dify.ai