Question

App Platform – disable load balancer rerouting on port 80

Posted August 25, 2021 88 views
NetworkingDigitalOcean Managed Load BalancersDigitalOcean App Platform

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

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.

×
Submit an Answer
1 answer

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.