Skip to main content

静态 IP

当你的安全设置需要 IP 允许列表,或者你正在实现仅允许来自受信任 IP 的防火墙时,你可以为 Accelerate 启用静态 IP,以确保受控且安全的数据库连接。

¥You can enable static IP for Accelerate when your security setup requires IP allowlisting or if you're implementing firewalls that only permit access from trusted IPs, ensuring controlled and secure database connections.

Result of enabling static IP Accelerate with a database using IP allowlisting

信息

要在现有或新的项目环境中启用 Accelerate 的静态 IP 支持,你的工作区需要使用我们的专业版或商业版。查看 定价页面 了解更多信息。

¥To enable static IP support for Accelerate within an existing or a new project environment, your workspace will need to be on our Pro or Business plans. Take a look at the pricing page for more information.

在 Accelerate 中启用静态 IP

¥Enable static IP in Accelerate

你可以通过两种方式选择在 平台控制台 中使用静态 IP 进行加速:

¥You can opt-in to use static IP for Accelerate in the Platform Console in two ways:

1. 为你的项目环境启用 Accelerate 时:

¥ When enabling Accelerate for your project environment:

  1. 指定你的数据库连接字符串和连接池区域。

    ¥Specify your database connection string and connection pool region.

  2. 通过切换“网络限制”部分中的“静态 IP”开关来启用静态 IP。

    ¥Enable static IP by toggling the Static IP switch in the Network restrictions section.

  3. 点击“启用加速”按钮。

    ¥Click on the Enable Accelerate button.

2. 对于已经使用 Accelerate 的项目:

¥ For projects already using Accelerate:

  1. 进入项目环境中的“Accelerate Settings”选项卡。

    ¥Navigate to the Accelerate Settings tab in the project environment.

  2. 通过切换“网络限制”部分中的“静态 IP”开关来启用静态 IP。

    ¥Enable static IP by toggling the Static IP switch in the Network restrictions section.

为 Accelerate 启用静态 IP 将为你提供静态 IPv4 和 IPv6 地址列表。

¥Enabling static IP for Accelerate will provide you with a list of static IPv4 and IPv6 addresses.

获取这些地址后,请配置数据库防火墙,使其仅允许来自这些 IP 以及任何其他需要访问数据库的受信任 IP 的传入连接。

¥Once you have these addresses, configure your database firewall to allow incoming connections only from these IPs and any other trusted IPs that need access to your database.

注意

由于你无法为已启用 Accelerate 的现有环境启用静态 IP,因此我们建议在新环境中启用 Accelerate 时选择静态 IP。使用与你现有 Accelerate 环境相同的数据库 URL,即可立即访问 Accelerate 的静态 IP 支持。

¥Since you cannot enable static IP for an existing Accelerate-enabled environment, we recommend opting for static IP when enabling Accelerate in a new environment. Use the same database URL as your existing Accelerate environment to instantly access static IP support for Accelerate.