App Platform is a Platform-as-a-Service (PaaS) offering that allows developers to publish code directly to DigitalOcean servers without worrying about the underlying infrastructure.
App Platform offers two types of static IP addresses:
Dedicated egress IPs are a paid feature. These addresses persist through redeployments but are removed from the app if you disable the feature or the app is destroyed.
Dedicated egress IPs have the following limitations:
Dedicated egress IPs are an app-level feature. When you assign them to an app, all egress (outgoing) traffic from the app’s components use the addresses assigned to the app, except for functions. Egress traffic from functions cannot use dedicated egress IPs and their own addresses can change at any time.
You cannot forward logs from dedicated egress IPs. Log forwarding uses its own routing to send logs.
You can add a dedicated egress IPs to your app after you deploy it. To do so, in the DigitalOcean Control Panel, go to the Apps page and click your app. Click the Settings tab, scroll to the Dedicated Egress IP Addresses section, and then click the Edit button beside the section.
In the Edit menu, click the Add Dedicated Egress IP button. This assigns two IP addresses to your app and triggers a redeployment.
To remove the dedicated egress IPs, click Release Dedicated Egress IPs in the same Edit menu. This removes the IP addresses from the app and triggers a redeployment. Once the addresses have been released, the same addresses cannot be re-added to the app.
App Platform offers two public ingress IPs that you can point DNS records at to direct traffic to your app, free of charge.
162.159.140.98
(DNS A Record Type)172.66.0.96
(DNS A Record Type)2606:4700:7::60
(DNS AAAA Record Type)2a06:98c1:58::60
(DNS AAAA Record Type)To use these address, add a domain to your app. Once you’ve added a domain, add DNS A records to your domain’s DNS provider that directs traffic to these addresses. If DigitalOcean manages your domain, see our documentation on managing DNS records.
Once you’ve added a domain to your app and updated your domain’s DNS records, App Platform can then direct traffic received at these addresses to your app. The app doesn’t require any additional network configuration to start receiving traffic at these addresses.