{"action":"created","issue":{"url":"https://api.github.com/repos/scrapinghub/docker-devpi/issues/2","labels_url":"https://api.github.com/repos/scrapinghub/docker-devpi/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/scrapinghub/docker-devpi/issues/2/comments","events_url":"https://api.github.com/repos/scrapinghub/docker-devpi/issues/2/events","html_url":"https://github.com/scrapinghub/docker-devpi/pull/2","id":67410928,"number":2,"title":"Use Nginx as reverse proxy","user":{"login":"little-dude","id":6646324,"avatar_url":"https://avatars.githubusercontent.com/u/6646324?v=3","gravatar_id":"","url":"https://api.github.com/users/little-dude","html_url":"https://github.com/little-dude","followers_url":"https://api.github.com/users/little-dude/followers","following_url":"https://api.github.com/users/little-dude/following{/other_user}","gists_url":"https://api.github.com/users/little-dude/gists{/gist_id}","starred_url":"https://api.github.com/users/little-dude/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/little-dude/subscriptions","organizations_url":"https://api.github.com/users/little-dude/orgs","repos_url":"https://api.github.com/users/little-dude/repos","events_url":"https://api.github.com/users/little-dude/events{/privacy}","received_events_url":"https://api.github.com/users/little-dude/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-09T17:27:14Z","updated_at":"2015-04-12T17:21:05Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/scrapinghub/docker-devpi/pulls/2","html_url":"https://github.com/scrapinghub/docker-devpi/pull/2","diff_url":"https://github.com/scrapinghub/docker-devpi/pull/2.diff","patch_url":"https://github.com/scrapinghub/docker-devpi/pull/2.patch"},"body":"I found your image thanks to https://dantehranian.wordpress.com/2014/09/03/a-local-caching-proxy-for-pypi-python-org-via-docker/ \r\n\r\nI'd like to use NGINX to do https. This PR does not introduce HTTPS yet, but it adds nginx as reverse proxy, which is the first step.\r\n\r\nThere are some other smaller changes (see the commit message) which are not directly related, so let me know if you want me to do several PRs.\r\n\r\nFrom a user point of view those changes should be transparent. The behaviour is unchanged, but hunder the hood, the image uses nginx as reverse proxy.\r\n\r\nNote that despite the fact that everything is working, I'm seeing errors in nginx logs sometimes :\r\n```\r\n2015/04/09 15:45:05 [error] 78#0: *8 connect() failed (111: Connection refused) while connecting to upstream, client: 172.17.42.1, server: localhost, request: \"GET /root/dev HTTP/1.1\", upstream: \"http://[::1]:3142/root/dev\", host: \"localhost:3141\"\r\n```\r\n\r\nI'm not familiar with nginx so if you have any idea to fix this..."},"comment":{"url":"https://api.github.com/repos/scrapinghub/docker-devpi/issues/comments/92089821","html_url":"https://github.com/scrapinghub/docker-devpi/pull/2#issuecomment-92089821","issue_url":"https://api.github.com/repos/scrapinghub/docker-devpi/issues/2","id":92089821,"user":{"login":"little-dude","id":6646324,"avatar_url":"https://avatars.githubusercontent.com/u/6646324?v=3","gravatar_id":"","url":"https://api.github.com/users/little-dude","html_url":"https://github.com/little-dude","followers_url":"https://api.github.com/users/little-dude/followers","following_url":"https://api.github.com/users/little-dude/following{/other_user}","gists_url":"https://api.github.com/users/little-dude/gists{/gist_id}","starred_url":"https://api.github.com/users/little-dude/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/little-dude/subscriptions","organizations_url":"https://api.github.com/users/little-dude/orgs","repos_url":"https://api.github.com/users/little-dude/repos","events_url":"https://api.github.com/users/little-dude/events{/privacy}","received_events_url":"https://api.github.com/users/little-dude/received_events","type":"User","site_admin":false},"created_at":"2015-04-12T17:21:05Z","updated_at":"2015-04-12T17:21:05Z","body":"Yes, what you say is tperfeclty doable.\r\nThe reasons I'm doing it like this are : \r\n\r\n- it transparent for the user : the container behave like it was behaving before my changes.\r\n- there is no need to think about how to configure nginx, or how to link your containers together, everything is done in this one.\r\n- to me (but this is personnal opinion) pypi over https is one service, not two, and thus I'd like to be able to have this service provided by a single image.\r\n"}}