Skip to content

S3 凭据#

¥S3 credentials

你可以使用以下凭据验证以下节点:

¥You can use these credentials to authenticate the following nodes:

先决条件#

¥Prerequisites

在兼容 S3 的服务器上创建账户。使用 S3 节点处理通用或非 AWS S3 存储,例如:

¥Create an account on an S3-compatible server. Use the S3 node for generic or non-AWS S3 like:

支持的身份验证方法#

¥Supported authentication methods

  • S3 端点

¥S3 endpoint

相关资源#

¥Related resources

请参阅你的 S3 兼容提供商的文档,了解有关此服务的更多信息。例如,引用 Wasabi REST API 文档DigitalOcean Spaces API 参考文档

¥Refer to your S3-compatible provider's documentation for more information on the services. For example, refer to Wasabi's REST API documentation or DigitalOcean's Spaces API Reference Documentation.

使用 S3 端点#

¥Using S3 endpoint

要配置此凭据,你需要:

¥To configure this credential, you'll need:

  • S3 端点:输入 S3 存储后端的 URL 端点。

¥An S3 Endpoint: Enter the URL endpoint for the S3 storage backend.

  • 区域:输入 S3 存储的区域。某些提供商称之为 "区域别名。"。

¥A Region: Enter the region for your S3 storage. Some providers call this the "region slug."

  • 访问密钥 ID:输入你的 S3 提供商用于访问存储桶或空间的 S3 访问密钥。某些提供商称之为 API 密钥。

¥An Access Key ID: Enter the S3 access key your S3 provider uses to access the bucket or space. Some providers call this API keys.

  • 秘密访问密钥:输入访问密钥 ID 对应的密钥。

¥A Secret Access Key: Enter the secret access key for the Access Key ID.

  • 强制路径样式:启用此选项后,连接将使用路径式寻址方式来访问存储桶。

¥Force Path Style: When turned on, the connection uses path-style addressing for buckets.

  • 忽略 SSL 问题:启用此选项后,即使 SSL 证书验证失败,n8n 也会连接。

¥Ignore SSL Issues: When turned on, n8n will connect even if SSL certificate validation fails.

以下是 DigitalOcean Spaces 和 Wasabi 的更详细说明。如果你使用的是其他提供商,请参阅其文档以获取更多信息。

¥More detailed instructions for DigitalOcean Spaces and Wasabi follow. If you're using a different provider, refer to their documentation for more information.

使用 DigitalOcean Spaces#

¥Using DigitalOcean Spaces

要配置凭据以用于 DigitalOcean Spaces:

¥To configure the credential for use with DigitalOcean spaces:

  1. 在 DigitalOceans 中,转到控制面板并打开“设置”。你的端点应该列在那里。在该端点前添加 https://,并将其作为 S3 端点输入到 n8n 中。

¥In DigitalOceans, go to the control panel and open Settings. Your endpoint should be listed there. Prepend https:// to that endpoint and enter it as the S3 Endpoint in n8n.

  • 你的 DigitalOceans 终结点取决于你的存储桶所在的数据中心区域。

    ¥Your DigitalOceans endpoint depends on the data center region your bucket's in. 2. 对于区域,请输入你的存储桶所在的区域,例如 nyc3

¥For the Region, enter the region your bucket's located in, for example, nyc3.

  • 如果你计划使用此凭据创建新空间,请改为输入 us-east-1

    ¥If you plan to use this credential to create new Spaces, enter us-east-1 instead. 3. 从你的 DigitalOceans 控制面板,转到 API

¥From your DigitalOceans control panel, go to API. 4. 打开“空间键”选项卡。

¥Open the Spaces Keys tab. 5. 选择“生成新密钥”。

¥Select Generate New Key. 6. 请输入密钥名称,例如 n8n integration,并选中复选框。

¥Enter a Name for your key, like n8n integration and select the checkmark. 7. 复制名称旁边显示的密钥并将其作为 n8n 中的访问密钥 ID 输入。

¥Copy the Key displayed next to the name and enter this as the Access Key ID in n8n. 8. 复制密钥值,并将其作为 n8n 中的密钥访问密钥输入。

¥Copy the Secret value and enter this as the Secret Access Key in n8n.

¥Keep the Force Path Style toggle turned off unless you want to use subdomain/virtual calling format. 10. 决定 n8n 凭证如何处理 SSL:

1
2
3
4
5
6
7
8
9
¥Decide how you want the n8n credential to handle SSL:

* 要遵守 SSL 证书验证,请保持默认的“忽略 SSL 问题”选项关闭。

  ¥To respect SSL certificate validation, keep the default of **Ignore SSL Issues** turned off.

* 即使 SSL 证书验证失败,也要启用“忽略 SSL 问题”选项,以便连接。

  ¥To connect even if SSL certificate validation fails, turn on **Ignore SSL Issues**.

有关更多信息,请参阅 DigitalOcean 的 Spaces API 参考文档

¥Refer to DigitalOcean's Spaces API Reference Documentation for more information.

使用 Wasabi#

¥Using Wasabi

要配置凭据以用于 Wasabi:

¥To configure the credential for use with Wasabi:

  1. 对于 S3 端点,请输入你的存储桶所在区域的服务 URL。从 https:// 开始。

¥For the S3 Endpoint, enter the service URL for your bucket's region. Start it with https://.

¥For the Region, enter the region slug portion of the service URL. For example, if you entered https://s3.us-east-2.wasabisys.com as the S3 Endpoint, us-east-2 is the region. 3. 以 root 用户身份登录你的 Wasabi 控制台。

¥Log into you Wasabi Console as the root user. 4. 打开菜单并选择“访问密钥”。

¥Open the Menu and select Access Keys. 5. 选择“创建新访问密钥”。

¥Select CREATE NEW ACCESS KEY. 6. 选择密钥是针对根用户还是子用户,然后选择“创建”。

¥Select whether the key is for the Root User or a Sub-User and select CREATE. 7. 复制访问令牌、客户端 ID 和密钥,并将它们添加到 n8n 中。

¥Copy the Access Key and enter it in n8n as the Access Key ID. 8. 复制密钥,并将其作为秘密访问密钥输入到 n8n 中。

¥Copy the Secret Key and enter it in n8n as the Secret Access Key.

  • 有关生成密钥和密钥秘钥的更多信息,请参阅 创建新的访问密钥

    ¥Refer to Creating a New Access Key for more information on generating the key and secret. 9. Wasabi 建议启用“强制路径样式”开关("因为路径样式提供了最佳体验。存储桶名称灵活,避免域名问题。")。更多信息请参阅 Wasabi REST API 简介

¥Wasabi recommends turning on the Force Path Style toggle "because the path-style offers the greatest flexibility in bucket names, avoiding domain name issues." Refer to the Wasabi REST API Introduction for more information. 10. 决定 n8n 凭证如何处理 SSL:

1
2
3
4
5
6
7
8
9
¥Decide how you want the n8n credential to handle SSL:

* 要遵守 SSL 证书验证,请保持默认的“忽略 SSL 问题”选项关闭。

  ¥To respect SSL certificate validation, keep the default of **Ignore SSL Issues** turned off.

* 即使 SSL 证书验证失败,也要启用“忽略 SSL 问题”选项,以便连接。

  ¥To connect even if SSL certificate validation fails, turn on **Ignore SSL Issues**.