{"action":"created","issue":{"url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/9230","labels_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/9230/labels{/name}","comments_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/9230/comments","events_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/9230/events","html_url":"https://github.com/gitlabhq/gitlabhq/issues/9230","id":72041949,"number":9230,"title":"Can't specify port 5000 in external_url","user":{"login":"tedostrem","id":2115256,"avatar_url":"https://avatars.githubusercontent.com/u/2115256?v=3","gravatar_id":"","url":"https://api.github.com/users/tedostrem","html_url":"https://github.com/tedostrem","followers_url":"https://api.github.com/users/tedostrem/followers","following_url":"https://api.github.com/users/tedostrem/following{/other_user}","gists_url":"https://api.github.com/users/tedostrem/gists{/gist_id}","starred_url":"https://api.github.com/users/tedostrem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tedostrem/subscriptions","organizations_url":"https://api.github.com/users/tedostrem/orgs","repos_url":"https://api.github.com/users/tedostrem/repos","events_url":"https://api.github.com/users/tedostrem/events{/privacy}","received_events_url":"https://api.github.com/users/tedostrem/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-30T02:33:11Z","updated_at":"2015-04-30T03:54:37Z","closed_at":null,"body":"I need to run gitlab on port 5000 due to lack of ICP license on a chinese server and when I do the following change to gitlab.rb the server becomes inaccessible\r\nexternal_url 'http://vhost.mydomain.cn:5000'\r\n\r\nIf I change it to port 80 gitlab runs fine except that notification emails being sent out are\r\nomitting the port and assumes port 80 and thus the URL in the emails is wrong.\r\n\r\nI'm using the genezys/gitlab docker image which means that the server is running on port 80 inside of the container with a nginx reverse proxy on port 5000 in front.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/comments/97653427","html_url":"https://github.com/gitlabhq/gitlabhq/issues/9230#issuecomment-97653427","issue_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/9230","id":97653427,"user":{"login":"stanhu","id":963826,"avatar_url":"https://avatars.githubusercontent.com/u/963826?v=3","gravatar_id":"","url":"https://api.github.com/users/stanhu","html_url":"https://github.com/stanhu","followers_url":"https://api.github.com/users/stanhu/followers","following_url":"https://api.github.com/users/stanhu/following{/other_user}","gists_url":"https://api.github.com/users/stanhu/gists{/gist_id}","starred_url":"https://api.github.com/users/stanhu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stanhu/subscriptions","organizations_url":"https://api.github.com/users/stanhu/orgs","repos_url":"https://api.github.com/users/stanhu/repos","events_url":"https://api.github.com/users/stanhu/events{/privacy}","received_events_url":"https://api.github.com/users/stanhu/received_events","type":"User","site_admin":false},"created_at":"2015-04-30T03:54:37Z","updated_at":"2015-04-30T03:54:37Z","body":"If you set the config to 'http://vhost.mydomain.cn:5000', then GitLab will listen on port 5000 unless you override the port with the `listen_port` option:\r\n\r\nhttps://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/settings/nginx.md#setting-the-nginx-listen-port\r\n"}}