lancachenet / monolithic

A monolithic lancache service capable of caching all CDNs in a single instance
https://hub.docker.com/r/lancachenet/monolithic
Other
725 stars 73 forks source link

Addition of upstream proxy to resolve slice redirect errors (302 Playstation) #156

Closed VibroAxe closed 1 year ago

VibroAxe commented 1 year ago

Added new upstream proxy in lancache standard structure.

This resolves #60 by sending all upstream requests via a small 2nd proxy to catch any 302 responses coming from the load balancer "mid slice". Any 302 requests are first followed by the interim proxy and then re-served (slices intact) to the primary lancache block to be cached.

For reasons best known to past me, we seem to be getting some duplicated commits in this PR which are already in main. But all seem to be operational (assuming the CI passes).

mintopia commented 1 year ago

lgtm

VibroAxe commented 1 year ago

Good comments, i'll take a look at this when I get another 5

alexdrean commented 1 year ago

I would love to see this in master so I fixed the indent issues... https://github.com/lancachenet/monolithic/compare/playstation...alexdrean:monolithic:playstation

To apply to your local playstation branch:

git remote add alexdrean https://github.com/alexdrean/monolithic.git
git remote update
git checkout playstation
git merge alexdrean/playstation

Also, I think Mathew was maybe trying to say that RUN apt-get update; install git jq should/could go right before (for consistency) RUN rm /etc/nginx/sites-enabled/* /etc/nginx/stream-enabled/* ;\. That's just a guess, I've been wrong before.

Thank you so much for doing all this debugging work! Fixed my customers' recent issues with PS4/5.