{"action":"created","issue":{"url":"https://api.github.com/repos/webplatform/ops/issues/156","labels_url":"https://api.github.com/repos/webplatform/ops/issues/156/labels{/name}","comments_url":"https://api.github.com/repos/webplatform/ops/issues/156/comments","events_url":"https://api.github.com/repos/webplatform/ops/issues/156/events","html_url":"https://github.com/webplatform/ops/issues/156","id":71688996,"number":156,"title":"Create a debian package hosting mirror with Fastly in front with long cache time","user":{"login":"renoirb","id":296940,"avatar_url":"https://avatars.githubusercontent.com/u/296940?v=3","gravatar_id":"","url":"https://api.github.com/users/renoirb","html_url":"https://github.com/renoirb","followers_url":"https://api.github.com/users/renoirb/followers","following_url":"https://api.github.com/users/renoirb/following{/other_user}","gists_url":"https://api.github.com/users/renoirb/gists{/gist_id}","starred_url":"https://api.github.com/users/renoirb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renoirb/subscriptions","organizations_url":"https://api.github.com/users/renoirb/orgs","repos_url":"https://api.github.com/users/renoirb/repos","events_url":"https://api.github.com/users/renoirb/events{/privacy}","received_events_url":"https://api.github.com/users/renoirb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/webplatform/ops/labels/4%20-%20Done","name":"4 - Done","color":"CCCCCC"}],"state":"closed","locked":false,"assignee":{"login":"renoirb","id":296940,"avatar_url":"https://avatars.githubusercontent.com/u/296940?v=3","gravatar_id":"","url":"https://api.github.com/users/renoirb","html_url":"https://github.com/renoirb","followers_url":"https://api.github.com/users/renoirb/followers","following_url":"https://api.github.com/users/renoirb/following{/other_user}","gists_url":"https://api.github.com/users/renoirb/gists{/gist_id}","starred_url":"https://api.github.com/users/renoirb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renoirb/subscriptions","organizations_url":"https://api.github.com/users/renoirb/orgs","repos_url":"https://api.github.com/users/renoirb/repos","events_url":"https://api.github.com/users/renoirb/events{/privacy}","received_events_url":"https://api.github.com/users/renoirb/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-04-28T20:06:57Z","updated_at":"2015-06-02T19:01:33Z","closed_at":"2015-06-02T18:57:39Z","body":"## Estimate\r\n\r\n* 2h\r\n\r\n## Summary:\r\n\r\nIn order to have a reliable system, we need to host our *.deb* (a.k.a. *apt-get* source location) files from a web server. But what if the underlying web server is down too? Let’s leverage Fastly by configuring it to store the file for long period of time.\r\n\r\nCurrent setup is that we copy contents of folder on every servers. It would be more efficient if we had it available from the web directly.\r\n\r\n## Tasks\r\n\r\n* [ ] Setup domain name zone file (e.g. `packages.webplatform.org`)\r\n* [ ] Setup a VirtualHost to answer to a public subdomain\r\n* [ ] Setup a debian repository folder as namespace (e.g. `/ubuntu/`)\r\n* [ ] Setup all nodes to rely on it\r\n* [ ] Configure Fastly/Varnish to keep it for a very long time\r\n\r\n## Related\r\n\r\n* [Create a public download archive stored directly in DreamObjects](https://docs.webplatform.org/wiki/WPD:Infrastructure/procedures/Create_a_public_download_archive_repository_stored_directly_in_DreamObjects) (incomplete)"},"comment":{"url":"https://api.github.com/repos/webplatform/ops/issues/comments/108057316","html_url":"https://github.com/webplatform/ops/issues/156#issuecomment-108057316","issue_url":"https://api.github.com/repos/webplatform/ops/issues/156","id":108057316,"user":{"login":"renoirb","id":296940,"avatar_url":"https://avatars.githubusercontent.com/u/296940?v=3","gravatar_id":"","url":"https://api.github.com/users/renoirb","html_url":"https://github.com/renoirb","followers_url":"https://api.github.com/users/renoirb/followers","following_url":"https://api.github.com/users/renoirb/following{/other_user}","gists_url":"https://api.github.com/users/renoirb/gists{/gist_id}","starred_url":"https://api.github.com/users/renoirb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renoirb/subscriptions","organizations_url":"https://api.github.com/users/renoirb/orgs","repos_url":"https://api.github.com/users/renoirb/repos","events_url":"https://api.github.com/users/renoirb/events{/privacy}","received_events_url":"https://api.github.com/users/renoirb/received_events","type":"User","site_admin":false},"created_at":"2015-06-02T19:01:33Z","updated_at":"2015-06-02T19:01:33Z","body":"Issue we had was because apt would make requests to `http://static.webplatform.org/wpd/packages/apt//file.deb` and Varnish didn't like the double-slashe (\"//\"). [Fixed it like that](https://github.com/webplatform/varnish-configs/blob/master/static.vcl#L48)"}}