Many thanks to multiplay.co.uk for their blog article to this setup. I ported this to linux (CentOS) and serve it to the world, for their setup. Blog: http://blog.multiplay.co.uk/2014/04/lancache-dynamically-caching-game-installs-at-lans-using-nginx/
We use this setup a few years on our GamersCongress in Vilsbiburg. Feel free to visit us :-)
For this functionality we use NGINX with its caching service. All of this configuration is in /etc/nginx.
All of the logs and all of the data is stored in /data.
lancache-steam cs.steampowered.com *.cs.steampowered.com content1.steampowered.com content2.steampowered.com content3.steampowered.com content4.steampowered.com content5.steampowered.com content6.steampowered.com content7.steampowered.com content8.steampowered.com *.hsar.steampowered.com.edgesuite.net *.akamai.steamstatic.com content-origin.steampowered.com client-download.steampowered.com
lancache-riot l3cdn.riotgames.com
lancache-blizzard dist.blizzard.com.edgesuite.net llnw.blizzard.com dist.blizzard.com blizzard.vo.llnwd.net
lancache-hirez hirez.http.internapcdn.net
lancache-origin akamai.cdn.ea.com lvlt.cdn.ea.com
lancache-sony pls.patch.station.sony.com
lancache-turbine download.ic.akamai.turbine.com launcher.infinitecrisis.com
lancache-microsoft *.download.windowsupdate.com download.windowsupdate.com dlassets.xboxlive.com *.xboxone.loris.llnwd.net xboxone.vo.llnwd.net images-eds.xboxlive.com xbox-mbr.xboxlive.com
We added some attributes to the log_format output. Logstash will use these for a better output (refer to https://easyengine.io/tutorials/nginx/upstream-cache-status-in-access-log/) :
log_format rt_cache “$upstream_cache_status” “$host” “$http_range"
Cache optimization Logstash connection