LittleBigRefresh / Refresh

A second-generation custom server for LittleBigPlanet that focuses on quality of life features and improving user experience.
https://lbp.littlebigrefresh.com
GNU Affero General Public License v3.0
76 stars 25 forks source link

Change HTTPS proxy to work off redirects towards an external proxy #668

Closed Beyley closed 1 month ago

Beyley commented 1 month ago

This allows us to use an external proxy, instead of the buggy proxy that I had originally written. Sadly we cant redirect directly to prod because of a bug in the original game (after a redirect it still uses the pre-redirect host header value with the new server).

In practice, the proxy.json config will probably just point to the same machine as Refresh.HttpsProxy itself, but with a different port, which is hosting a standard nginx HTTP proxy server.

This PR also fixes the middleware order