Nextcloud 凭据#
¥Nextcloud credentials
你可以使用以下凭据验证以下节点:
¥You can use these credentials to authenticate the following nodes:
支持的身份验证方法#
¥Supported authentication methods
- 基本身份验证
¥Basic auth
- OAuth2
相关资源#
¥Related resources
有关服务的更多信息,请参阅 Nextcloud API 文档。
¥Refer to Nextcloud's API documentation for more information about the service.
有关安装和配置 Nextcloud 的更多信息,请参阅 Nextcloud 用户手册。
¥Refer to Nextcloud's user manual for more information on installing and configuring Nextcloud.
使用基本身份验证#
¥Using basic auth
要配置此凭据,你需要一个 Nextcloud 账户以及:
¥To configure this credential, you'll need a Nextcloud account and:
- 你的 WebDAV URL
¥Your WebDAV URL
- 你的用户名
¥Your User name
- 你的密码或应用密码。
¥Your Password or an app password
设置:
¥To set it up:
- 创建 WebDAV URL:如果 Ollama 和 n8n 运行在同一个 Docker 容器中,则 地址无需任何特殊配置。输入你用于访问 Nextcloud 的 URL,并添加
/remote.php/webdav/。例如,如果你通过https://cloud.n8n.com访问 Nextcloud,则 WebDAV URL 为https://cloud.n8n.com/remote.php/webdav。
¥To create your WebDAV URL: If Nextcloud is in the root of your domain: Enter the URL you use to access Nextcloud and add /remote.php/webdav/. For example, if you access Nextcloud at https://cloud.n8n.com, your WebDAV URL is https://cloud.n8n.com/remote.php/webdav.
-
如果你将 Nextcloud 安装在子目录中,请输入你用于访问 Nextcloud 的 URL,并添加
/<subdirectory>/remote.php/webdav/。将<subdirectory>替换为 Nextcloud 的安装子目录。¥If you have Nextcloud installed in a subdirectory, enter the URL you use to access Nextcloud and add
/<subdirectory>/remote.php/webdav/. Replace<subdirectory>with the subdirectory Nextcloud's installed in. -
有关构建 WebDAV URL 的更多信息,请参阅 Nextcloud 的 第三方 WebDAV 客户端 文档。
¥Refer to Nextcloud's Third-party WebDAV clients documentation for more information on constructing your WebDAV URL. 2. 输入你的用户名。
¥Enter your User name. 3. 对于密码,Nextcloud 建议使用应用密码而非用户密码。创建应用密码:
¥For the Password, Nextcloud recommends using an app password rather than your user password. To create an app password: 1. 在 Nextcloud Web 界面中,选择右上角的头像,然后选择“个人设置”。
1 | |
-
在左侧菜单中,选择“安全”。
¥In the left menu, choose Security. 3. 滚动到底部的“应用密码”部分,并创建一个新的应用密码。
¥Scroll to the bottom to the App Password section and create a new app password. 4. 复制该应用密码,并将其作为你的密码输入到 n8n 中。
¥Copy that app password and enter it in n8n as your Password.
使用 OAuth2#
¥Using OAuth2
要配置此凭据,你需要一个 Nextcloud 账户以及:
¥To configure this credential, you'll need a Nextcloud account and:
- 授权 URL 和访问令牌 URL:这些设置取决于你用于访问 Nextcloud 的 URL。
¥An Authorization URL and Access Token URL: These depend on the URL you use to access Nextcloud.
- 客户端 ID:在“管理员安全设置”中添加 OAuth2 客户端应用后生成。
¥A Client ID: Generated once you add an OAuth2 client application in Administrator Security Settings.
- 客户端密钥:在“管理员安全设置”中添加 OAuth2 客户端应用后生成。
¥A Client Secret: Generated once you add an OAuth2 client application in Administrator Security Settings.
- WebDAV URL:这取决于你用于访问 Nextcloud 的 URL。
¥A WebDAV URL: This depends on the URL you use to access Nextcloud.
设置:
¥To set it up:
- 在 Nextcloud 中,打开“管理员安全设置”。
¥In Nextcloud, open your Administrator Security Settings.
- 在 OAuth 2.0 客户端下找到“添加客户端”部分。
¥Find the Add client section under OAuth 2.0 clients.
- 请输入客户端名称,例如
n8n integration。
¥Enter a Name for your client, like n8n integration.
- 从 n8n 复制 OAuth 回调 URL,并将其作为重定向 URI 输入。
¥Copy the OAuth Callback URL from n8n and enter it as the Redirection URI.
- 然后选择“在 Nextcloud 中添加”。
¥Then select Add in Nextcloud.
- 在 n8n 中,更新授权 URL,将
https://nextcloud.example.com替换为你用于访问 Nextcloud 的 URL。例如,如果你通过https://cloud.n8n.com访问 Nextcloud,则授权 URL 为https://cloud.n8n.com/apps/oauth2/authorize。
¥In n8n, update the Authorization URL to replace https://nextcloud.example.com with the URL you use to access Nextcloud. For example, if you access Nextcloud at https://cloud.n8n.com, the Authorization URL is https://cloud.n8n.com/apps/oauth2/authorize.
- 在 n8n 中,更新访问令牌 URL,将
https://nextcloud.example.com替换为你用于访问 Nextcloud 的 URL。例如,如果你通过https://cloud.n8n.com访问 Nextcloud,则访问令牌 URL 为https://cloud.n8n.com/apps/oauth2/api/v1/token。
¥In n8n, update the Access Token URL to replace https://nextcloud.example.com with the URL you use to access Nextcloud. For example, if you access Nextcloud at https://cloud.n8n.com, the Access Token URL is https://cloud.n8n.com/apps/oauth2/api/v1/token.
Pretty URL configuration
1 | |
- 复制你的 OAuth2 客户端的 Nextcloud 客户端标识符并将其作为 n8n 中的客户端 ID 输入。
¥Copy the Nextcloud Client Identifier for your OAuth2 client and enter it as the Client ID in n8n. 9. 复制 Nextcloud 密钥并将其作为 n8n 中的客户端密钥输入。
¥Copy the Nextcloud Secret and enter it as the Client Secret in n8n.
10. 在 n8n 中,要创建 WebDAV URL:如果 Nextcloud 位于你的域名根目录,请输入你用于访问 Nextcloud 的 URL,并添加 /remote.php/webdav/。例如,如果你通过 https://cloud.n8n.com 访问 Nextcloud,则 WebDAV URL 为 https://cloud.n8n.com/remote.php/webdav。
1 2 3 4 5 6 7 8 9 | |
请参阅 Nextcloud OAuth2 配置文档 以获取更详细的说明。
¥Refer to the Nextcloud OAuth2 Configuration documentation for more detailed instructions.