Question

App Platform – disable load balancer rerouting on port 80

Hi,

If I deploy an app on DO’s platform with HTTP Port set to e.g. 1337, with the URL example-ondigitalocean.app, I cannot access example-ondigitalocean.app:1337.

My understanding per https://docs.digitalocean.com/products/app-platform/concepts/http-port/ is that a load balancer will reroute port 80 requests.

Why is this? Can one kill all port 80 / 443 redirects and only expose the HTTP Port?

Thanks


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi @randomuser,

The port you defined in the App Platform as HTTP_PORT is the port on which your service is listening on. But initially, the load balancer gets requests on port 80/443. The architecture works in this way, so you cannot directly access the app by appending :<http_port> at the end of your APP_URL. You need to use the APP_URL given to access your app and it will automatically handle the port forwarding/redirections.