web/.env.example
Set these on your host before deploying. Each platform has an “Environment Variables” section in the deploy flow.
NEXT_PUBLIC_DEPLOY_ENV
For production release, change this to PRODUCTION
NEXT_PUBLIC_EDITION
The deployment edition, SELF_HOSTED
NEXT_PUBLIC_API_PREFIX
The base URL of console application, refers to the Console base URL of WEB service if console domain is different from api or web app…
NEXT_PUBLIC_PUBLIC_API_PREFIX
The URL for Web APP, refers to the Web App base URL of WEB service if web app domain is different from console or api domain. example:…
NEXT_PUBLIC_SENTRY_DSN
NEXT_TELEMETRY_DISABLED
Disable Next.js Telemetry (https://nextjs.org/telemetry)
NEXT_PUBLIC_UPLOAD_IMAGE_AS_ICON
Disable Upload Image as WebApp icon default is false
NEXT_PUBLIC_TEXT_GENERATION_TIMEOUT_MS
The timeout for the text generation in millisecond
NEXT_PUBLIC_CSP_WHITELIST
CSP https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP
brew install flyctl && fly launch --from https://github.com/fishaudio/dify
curl -L https://fly.io/install.sh | sh && fly launch --from https://github.com/fishaudio/dify
iwr https://fly.io/install.ps1 -useb | iex; fly launch --from https://github.com/fishaudio/dify