bntjah / lancache

Improve download speeds and reduce strain on your Internet connection at LAN parties. Locally cache game installs and updates from the largest distributors: Steam, RIOT, Blizard, Hirez, Origin, Sony, Microsoft, Tera, GOG, ArenaNetworks, WarGaming, and Uplay. Super easy to setup with auto installer script!
175 stars 44 forks source link

Adding new services to cache #91

Closed MadMage999 closed 6 years ago

MadMage999 commented 6 years ago

What would be the process to add a new service to cache like youtube?

nexusofdoom commented 6 years ago

youtube is https sorry.

elico commented 6 years ago

@MadMage999 It's possible but a bit complicated and above nginx level.. Between couple options I created a nice option that is not a cache but more of a storage at: http://gogs.ngtech.co.il/elicro/youtube-store

Locally I am using it in a combination of Squid-Cache and an ICAP service which redirects to the local storage web page and the user can override it and get direct access to the original youtube page. Depends on your scenario you should choose the right option.

nexusofdoom commented 6 years ago

you could setup nginx with ssl but then you would need to install a cert on all the other clients devices.

elico commented 6 years ago

@nexusofdoom nginx alone cannot cache youtube... it is a fact. If you can and it only a matter of certificate then I would like to see that but.. two seconds before just take a peek at:

I researched Google CDN systems in the last 8 years and you can try to google a bit and find an idea but non of these that I know of can be implemented using nginx alone and by url patterns alone. You will need to process specific content in a much higher level then nginx can do so..

nexusofdoom commented 6 years ago

https://aacable.files.wordpress.com/2012/08/youtube-cache.png https://aacable.wordpress.com/2012/08/13/youtube-caching-with-squid-nginx/

I have not done this now. but at one point I have used a setup like this.

nexusofdoom commented 6 years ago

its just not in my time to work on this.