How to Configure HTTP/2

Validated on 30 Sep 2024 • Last edited on 17 Apr 2025

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.

You can configure your app to receive HTTP/2 traffic. HTTP/2 is an updated HTTP protocol that was designed to improve the performance of web applications by allowing multiple requests to be sent over a single connection. This allows your app to use gRPC and other HTTP/2 features.

If you have not configured your app to receive HTTP/2 traffic, App Platform downgrades requests to HTTP/1.1 when relayed to the app’s container.

To configure your app to receive HTTP/2 traffic, update or add the protocol field to the component you want to receive HTTP/2 traffic in your app’s spec file, like this:

app.yaml
name: your-app
services:
- name: grpc-service
  protocol: HTTP2

Once you have updated your app’s spec, the app redeploys with the new configuration and the container receives HTTP/2 traffic as HTTP/2 cleartext (h2c). Your app may require additional configuration to receive HTTP/2 traffic.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.