{"id":13735967,"url":"https://github.com/OpenSourceLAN/origin-docker","last_synced_at":"2025-05-08T12:31:33.467Z","repository":{"id":73700041,"uuid":"54722535","full_name":"OpenSourceLAN/origin-docker","owner":"OpenSourceLAN","description":"A super simple docker container to run a LAN cache for steam, origin, etc","archived":false,"fork":false,"pushed_at":"2021-11-12T02:10:40.000Z","size":55,"stargazers_count":76,"open_issues_count":5,"forks_count":18,"subscribers_count":13,"default_branch":"master","last_synced_at":"2024-11-15T04:31:15.541Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OpenSourceLAN.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-03-25T14:08:00.000Z","updated_at":"2024-09-06T20:48:31.000Z","dependencies_parsed_at":"2023-09-20T22:19:47.592Z","dependency_job_id":null,"html_url":"https://github.com/OpenSourceLAN/origin-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenSourceLAN%2Forigin-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenSourceLAN%2Forigin-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenSourceLAN%2Forigin-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenSourceLAN%2Forigin-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpenSourceLAN","download_url":"https://codeload.github.com/OpenSourceLAN/origin-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253068551,"owners_count":21848827,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T03:01:13.563Z","updated_at":"2025-05-08T12:31:33.142Z","avatar_url":"https://github.com/OpenSourceLAN.png","language":"Shell","funding_links":[],"categories":["Software"],"sub_categories":["Caching"],"readme":"# LAN Cache in a docker container\n\nSimply expose this container on port 80, and point a bunch of domains to this server's IP address, \nand you get a fully operational LAN cache. Hooray!\n\n## Game Download Service URL Reference List\n\nFor a list of DNS addresses to override on your DNS server, refer to [uklans/cache-domains](https://github.com/uklans/cache-domains/),\nor the individual nginx configuration files in this repo.\n\n## Quickstart\n\nTo build and run, do:\n```\n./buildcontainer.sh\n./start.sh\n```\n\n`start.sh` will make a /data/ directory to store logs and cache data in. \n\n## SSL HTTPS Dependency\n\n*Warning*: some services (eg, when downloading the Origin client) require HTTPS access to the \nhosts that we are hijacking. To avoid connectivity issues, you will need to run an \n[SNI proxy](https://github.com/dlundquist/sniproxy) to enable pass through of HTTPS traffic. \n\nYou can build and run the sniproxy container in the `sniproxy` directory to achieve this. \n\n```\ncd sniproxy\ndocker build -t sniproxy .\ndocker run --name sniproxy -p 443:443 sniproxy\n```\n\n## Installation Walkthrough\n\n### Start with a clean install of Linux\n\n### Ensure `/data` is on a volume (or symlink) with plenty of disk space.\n\nExample:\n - consider you have a mega-partition mounted to /mnt/storage\n - create a symlink for /data\n```\n$ sudo ln -s /mnt/storage/lancache/ /data\n\n$ df -h /data\nFilesystem      Size  Used Avail Use% Mounted on\n/dev/sda2       1.7T   69M  1.6T   1% /mnt/storage\n```\n\n### Install Docker if not already installed\n - curl sudo bash is terrible, but you're trusting my code anyway :)\n```\n$ curl -sSL https://get.docker.com | sudo bash\n```\n\n### Get this repository\n```\n$ git clone https://github.com/OpenSourceLAN/origin-docker.git\n$ cd origin-docker\n```\n\n### Set your max cache size\n`$ vi nginx.conf`\nEdit nginx.conf:\n- Find the proxy_cache_path line and udpate the max_size parameter to the maximum\n  amount of disk space you would like your cache to use\n\n### Build the containers\n`# ./buildcontainer.sh`\n\n### Start the cache container\n\nNotes:\n - using `--restart=always`, will auto-start after reboot\n - security, running your Docker services as root or non root\n   see https://docs.docker.com/engine/security/security/#docker-daemon-attack-surface\n`# ./start.sh`\n\n### Start the SNI proxy container (optional, but recommended)\n`# docker run --name sniproxy -p 443:443 sniproxy`\n\n### Start the DNS server if you need it\n`# cd dnsmasq \u0026\u0026 ./start.sh`\n\n\n## Credits\nIn addition to OpenSourceLAN members, this project contains [contributions](https://github.com/OpenSourceLAN/origin-docker/pull/1) from @ChainedHope\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOpenSourceLAN%2Forigin-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FOpenSourceLAN%2Forigin-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOpenSourceLAN%2Forigin-docker/lists"}