Documentation Index
Fetch the complete documentation index at: https://docs.dify.ai/llms.txt
Use this file to discover all available pages before exploring further.
Deployment Methods
Install Older Version
Use the--branch flag to install a specific version:
Install Using ZIP Archive
For network-restricted environments or when git is unavailable:Backup Procedures
Create Backup Before Upgrading
Always backup before upgrading to prevent data loss:Reverse Proxy Setup
Login Session Drops with Split Frontend and Backend Subdomains
If you have split web and API across subdomains behind a reverse proxy (for example,app.example.com for the UI and api.example.com for the backend), authentication cookies cannot reach both hosts. Login appears to succeed, but the session is dropped on the next request.
Set both variables in .env, then restart Dify:
COOKIE_DOMAIN: set to the shared top-level domain (e.g.,example.com). Leading dots are optional.NEXT_PUBLIC_COOKIE_DOMAIN: set to1to enable cross-subdomain cookies on the frontend.