Currently Digital Ocean adds both X-Forwarded-For and X-Forwarded-Proto to the request when proxying it through it's infrastructure so our application can figure out where the request was originally made to in the internet, but the absence of the HTTP port forces us to hack the request object and guess the port where it was made to.
You may ask why would we need the port, well the answer is simple, in the PHP PSRs it is denifed that any request made to a URL that does not uses the default port (80 for HTTP and 443 to HTTPS) needs to include the port in the URL so our server recognizes requests made using HTTPS in port 80 and includes it in the URL making it so we have to manually remove the port from the URL in that scenario.
Including the X-Forwarded-Proto would make it for the spec (since internet requests to any DO app uses the 443 port which is later redirected internally) and would our lives a lot easier.