{"action":"created","issue":{"url":"https://api.github.com/repos/kwk/docker-registry-frontend/issues/75","labels_url":"https://api.github.com/repos/kwk/docker-registry-frontend/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/kwk/docker-registry-frontend/issues/75/comments","events_url":"https://api.github.com/repos/kwk/docker-registry-frontend/issues/75/events","html_url":"https://github.com/kwk/docker-registry-frontend/issues/75","id":119674074,"number":75,"title":"Can't push when using frontend as registry","user":{"login":"jangrewe","id":126137,"avatar_url":"https://avatars.githubusercontent.com/u/126137?v=3","gravatar_id":"","url":"https://api.github.com/users/jangrewe","html_url":"https://github.com/jangrewe","followers_url":"https://api.github.com/users/jangrewe/followers","following_url":"https://api.github.com/users/jangrewe/following{/other_user}","gists_url":"https://api.github.com/users/jangrewe/gists{/gist_id}","starred_url":"https://api.github.com/users/jangrewe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jangrewe/subscriptions","organizations_url":"https://api.github.com/users/jangrewe/orgs","repos_url":"https://api.github.com/users/jangrewe/repos","events_url":"https://api.github.com/users/jangrewe/events{/privacy}","received_events_url":"https://api.github.com/users/jangrewe/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-01T09:21:03Z","updated_at":"2015-12-01T09:46:02Z","closed_at":"2015-12-01T09:46:02Z","body":"I have the frontend running on 80 and 443, proxying to the registry on 5000. When trying to push an image through the frontend to the registry, i get:\r\n\r\n```\r\nError parsing HTTP response: invalid character '<' looking for beginning of value: \"<!DOCTYPE HTML PUBLIC \\\"-//IETF//DTD HTML 2.0//EN\\\">\\n<html><head>\\n<title>403 Forbidden</title>\\n</head><body>\\n<h1>Forbidden</h1>\\n<p>You don't have permission to access /v2/gitlab-ci/cloud-deploy/blobs/uploads/\\non this server.<br />\\n</p>\\n<hr>\\n<address>Apache/2.4.10 (Debian) Server at registry.magic-technik.de Port 80</address>\\n</body></html>\\n\"\r\n```\r\n\r\nI've set the following EnvVars:\r\n```\r\n\"ENV_DOCKER_REGISTRY_HOST=172.17.42.1\",\r\n\"ENV_DOCKER_REGISTRY_PORT=5000\",\r\n\"ENV_DOCKER_REGISTRY_USE_SSL=\",\r\n\"ENV_REGISTRY_PROXY_FQDN=registry.example.com\",\r\n\"ENV_REGISTRY_PROXY_PORT=443\",\r\n```\r\n\r\nAs a workaround i'm currently sending 80 to the frontend and 443 straight to the registry, but i'd like to use the frontend via HTTPS, too! ;-)\r\n"},"comment":{"url":"https://api.github.com/repos/kwk/docker-registry-frontend/issues/comments/160914477","html_url":"https://github.com/kwk/docker-registry-frontend/issues/75#issuecomment-160914477","issue_url":"https://api.github.com/repos/kwk/docker-registry-frontend/issues/75","id":160914477,"user":{"login":"kwk","id":193408,"avatar_url":"https://avatars.githubusercontent.com/u/193408?v=3","gravatar_id":"","url":"https://api.github.com/users/kwk","html_url":"https://github.com/kwk","followers_url":"https://api.github.com/users/kwk/followers","following_url":"https://api.github.com/users/kwk/following{/other_user}","gists_url":"https://api.github.com/users/kwk/gists{/gist_id}","starred_url":"https://api.github.com/users/kwk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwk/subscriptions","organizations_url":"https://api.github.com/users/kwk/orgs","repos_url":"https://api.github.com/users/kwk/repos","events_url":"https://api.github.com/users/kwk/events{/privacy}","received_events_url":"https://api.github.com/users/kwk/received_events","type":"User","site_admin":false},"created_at":"2015-12-01T09:46:02Z","updated_at":"2015-12-01T09:46:02Z","body":"Please see https://github.com/kwk/docker-registry-frontend/tree/v2/example-setup"}}