Visitors reach your web process through our edge, over HTTPS. Your apps reach each other on a private network, and the internet through a shared outbound address.
Traffic coming in
- Only web traffic reaches your app from the internet: HTTP/1.1, HTTP/2 and WebSockets, to your web process.
- Shared addresses: your app is served on shared IPv4 and IPv6 addresses, on its default address and your custom domains.
- HTTPS: we handle the certificates. Plain HTTP is redirected to HTTPS.
- Your port: your app gets plain HTTP on its web process’s port.
- No other public ports. Other processes, and other ports, are reachable only by your own apps, on the private network. Raw TCP and UDP services aren’t offered.
- Balancing: requests go to the healthy instance with the fewest requests in progress.
Headers your app receives
We set these on every request, replacing whatever the visitor sent:
| Header | Holds |
|---|---|
X-Forwarded-For |
The visitor’s IP address |
X-Forwarded-Proto |
The protocol the visitor used |
X-Forwarded-Host |
The domain the visitor asked for |
We drop X-Real-IP, True-Client-IP, CF-Connecting-IP, X-Client-IP and X-Cluster-Client-IP if a visitor sends them, and any header with an underscore in its name. So you can trust X-Forwarded-For: set your framework to trust the proxy in front of it.
Slow and large requests
- Your app must start answering a request within a time limit, or the visitor gets
504. - A request body over the size limit gets
413. For large files, have visitors upload straight to object storage.
Pages visitors may see
When there’s nothing to serve, visitors get a plain page that doesn’t mention us:
| Page | Status | When |
|---|---|---|
| Starting up | 503 |
A sleeping app is taking a moment to wake. The page tries again by itself. |
| Unavailable | 503 |
The app isn’t deployed, is stopped, has no healthy instance, or your organisation is out of credit. |
| Suspended | 403 |
Your organisation is suspended. |
| Not found | 404 |
No app has that address. |
Traffic going out
Your apps can connect to the internet on any port except 25.
Instead, have the service you call check an API key, a token, a signed request or a client certificate. We don’t offer a fixed outbound address.
Port 25 is closed
Outbound port 25 is closed for every app, to stop spam. To send email, use an email service on its submission port, 587 or 465, or its HTTP API.
Data out
Data out is everything your instances send out of the platform:
- what they send straight to the internet, such as calls to other APIs and uploads;
- their responses to visitors, through our edge.
These don’t count:
- traffic between your own apps on the private network;
- builds;
- console commands.
Your running processes and release commands do count.
Your organisation’s first 100 GB of data out each month are free. After that, data out costs $0.02 per GB. The Billing page shows each app’s data out, and how much of the free amount is left. See Billing.