{"action":"opened","issue":{"url":"https://api.github.com/repos/vmware/harbor/issues/61","repository_url":"https://api.github.com/repos/vmware/harbor","labels_url":"https://api.github.com/repos/vmware/harbor/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/vmware/harbor/issues/61/comments","events_url":"https://api.github.com/repos/vmware/harbor/issues/61/events","html_url":"https://github.com/vmware/harbor/issues/61","id":144248594,"number":61,"title":"Cannot push image to harbor if using an extra http layer","user":{"login":"Benniu","id":895096,"avatar_url":"https://avatars.githubusercontent.com/u/895096?v=3","gravatar_id":"","url":"https://api.github.com/users/Benniu","html_url":"https://github.com/Benniu","followers_url":"https://api.github.com/users/Benniu/followers","following_url":"https://api.github.com/users/Benniu/following{/other_user}","gists_url":"https://api.github.com/users/Benniu/gists{/gist_id}","starred_url":"https://api.github.com/users/Benniu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Benniu/subscriptions","organizations_url":"https://api.github.com/users/Benniu/orgs","repos_url":"https://api.github.com/users/Benniu/repos","events_url":"https://api.github.com/users/Benniu/events{/privacy}","received_events_url":"https://api.github.com/users/Benniu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-29T12:25:04Z","updated_at":"2016-03-29T12:25:04Z","closed_at":null,"body":"If setting up harbor behind an nginx proxy or ELB, pushing image to harbor will fail.\r\n\r\nThat is because in harbor's nginx config, x-fowarded-XXX headers were set again. So harbor nginx will reset the values from first layer nginx or ELB, and the requests will not be routed properly.\r\n\r\nPlease see this issue: https://github.com/docker/distribution/issues/970\r\n\r\nIt would be nice if it could be configured in harbor.cfg to indicate where x-forwarded-XXX headers should be set in harbor's nginx.conf"}}