-
Notifications
You must be signed in to change notification settings - Fork 383
docs: adapt for the new start script #768
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -141,9 +141,9 @@ If you use your own reverse proxy, forward `Upgrade` and `Connection` headers on | |||||
|
|
||||||
| ### SECRET_KEY | ||||||
|
|
||||||
| Default: (pre-filled in `.env.example`; must be replaced for production) | ||||||
| Default: generated into `.env` by the Docker Compose wrapper. | ||||||
|
|
||||||
| Used for session cookie signing, JWT authentication tokens, file URL signatures (HMAC-SHA256), and encrypting third-party OAuth credentials (AES-256). Generate a strong key before first launch: | ||||||
| Used for session cookie signing, JWT authentication tokens, file URL signatures (HMAC-SHA256), and encrypting third-party OAuth credentials (AES-256). The Docker Compose wrapper generates a strong key before first launch. For manual deployments, generate one with: | ||||||
|
|
||||||
| ```bash | ||||||
| openssl rand -base64 42 | ||||||
|
|
@@ -1046,7 +1046,7 @@ Dify sends emails for account invitations, password resets, login codes, and Hum | |||||
|
|
||||||
| | Variable | Default | Description | | ||||||
| |---|---|---| | ||||||
| | `MAIL_TYPE` | `resend` | Mail provider: `resend`, `smtp`, or `sendgrid`. | | ||||||
| | `MAIL_TYPE` | (empty) | Mail provider: `resend`, `smtp`, or `sendgrid`. Leave empty to disable email sending. | | ||||||
| | `MAIL_DEFAULT_SEND_FROM` | (empty) | Default "From" address for all outgoing emails. Required. | | ||||||
|
||||||
| | `MAIL_DEFAULT_SEND_FROM` | (empty) | Default "From" address for all outgoing emails. Required. | | |
| | `MAIL_DEFAULT_SEND_FROM` | (empty) | Default "From" address for all outgoing emails. Required when `MAIL_TYPE` is set. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This update changes the documented defaults/behavior for
SECRET_KEY(generated by wrapper) andMAIL_TYPE(empty disables email) in English, but the corresponding JA/ZH environment docs still describe the previous defaults (e.g., JA/ZHSECRET_KEYsays pre-filled in.env.example; JA/ZHMAIL_TYPEdefaultresend). To avoid inconsistent guidance across locales, please update the translated pages (e.g.,ja/self-host/configuration/environments.mdxaround theSECRET_KEYsection and mail table, and the same sections inzh/...).