更改自宿 n8n 的实例所有者邮箱(Change the instance owner email for self-hosted n8n)#
你可以从用户界面更改实例所有者的电子邮件,或者如果你通过这种方式管理实例所有者,也可以从环境变量中更改。
🌐 You can change the instance owner email from the UI, or from environment variables if you manage the instance owner that way.
所有者邮箱必须唯一
所有者邮箱不得已被实例中的其他用户使用。如果你想使用的邮箱已经被其他用户使用,请先更改或删除该用户,使邮箱可用。
更改所有者电子邮件会更新现有实例的所有者账户。它不会将所有权转移给其他现有用户,也不会合并用户账户。
🌐 Changing the owner email updates the existing instance owner account. It doesn't transfer ownership to another existing user or merge user accounts.
在用户界面中更改所有者邮箱(Change the owner email in the UI)#
- 以实例所有者身份登录。
- 进入设置 > 个人。
- 更新 电子邮件 字段。
- 选择 保存。
使用环境变量更改所有者电子邮件(Change the owner email using environment variables)#
如果你使用环境变量来管理实例所有者:
🌐 If you manage the instance owner using environment variables:
- 将
N8N_INSTANCE_OWNER_MANAGED_BY_ENV设置为true。 - 将
N8N_INSTANCE_OWNER_EMAIL设置为新的所有者邮箱。 - 保持
N8N_INSTANCE_OWNER_FIRST_NAME、N8N_INSTANCE_OWNER_LAST_NAME和N8N_INSTANCE_OWNER_PASSWORD_HASH的设置不变。 - 重启 n8n。
当 N8N_INSTANCE_OWNER_MANAGED_BY_ENV 是 true 时,n8n 会在每次启动时重新应用所有者详细信息。匹配的 UI 控件变为只读。
🌐 When N8N_INSTANCE_OWNER_MANAGED_BY_ENV is true, n8n reapplies the owner details on every startup. The matching UI controls become read-only.
N8N_INSTANCE_OWNER_PASSWORD_HASH 必须是一个 bcrypt 哈希
此变量期望一个预先哈希的 bcrypt 值。设置明文密码会导致登录失败。
欲了解更多信息,请参阅使用环境变量管理实例设置。
🌐 For more information, see Manage instance settings using environment variables.