The folowing are untested and may require SSL certificate spoofing to work (not covered here).
Build the docker images and spawn docker containers:
docker-compose up --build -d
Test your cache server from another machine:
nslookup steamcontent.com <ip-of-cache-server>
Direct network traffic to your cache server:
There are 3 docker containers that make up the cache server:
dnsmasq
: Uses Dnsmasq DNS server to redirect requests for game downloads to the cache server.nginx
: Uses NGINX web server as an HTTP proxy and to cache HTTP requests for game downloads.sniproxy
: Uses SNI Proxy server as an HTTPS proxy to prevent redirected HTTPS traffic from 404-ing. This traffic cannot be cached so it's simply passed-through without decryption.This started as a fork of OpenSourceLAN's origin-docker which I decided to dive deep into and ended up reorganizing quite a bit. Credit is due over there :)