{"action":"created","issue":{"url":"https://api.github.com/repos/sameersbn/docker-gitlab/issues/345","labels_url":"https://api.github.com/repos/sameersbn/docker-gitlab/issues/345/labels{/name}","comments_url":"https://api.github.com/repos/sameersbn/docker-gitlab/issues/345/comments","events_url":"https://api.github.com/repos/sameersbn/docker-gitlab/issues/345/events","html_url":"https://github.com/sameersbn/docker-gitlab/issues/345","id":87793511,"number":345,"title":"GITLAB_HOST ignored","user":{"login":"utrack","id":3862920,"avatar_url":"https://avatars.githubusercontent.com/u/3862920?v=3","gravatar_id":"","url":"https://api.github.com/users/utrack","html_url":"https://github.com/utrack","followers_url":"https://api.github.com/users/utrack/followers","following_url":"https://api.github.com/users/utrack/following{/other_user}","gists_url":"https://api.github.com/users/utrack/gists{/gist_id}","starred_url":"https://api.github.com/users/utrack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/utrack/subscriptions","organizations_url":"https://api.github.com/users/utrack/orgs","repos_url":"https://api.github.com/users/utrack/repos","events_url":"https://api.github.com/users/utrack/events{/privacy}","received_events_url":"https://api.github.com/users/utrack/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-06-12T17:16:51Z","updated_at":"2015-06-15T13:53:12Z","closed_at":null,"body":"Here's my launch command:\r\n```\r\ndocker run --name='gitlab' -d --link=pg1:postgresql --link=redis-gitlab:redisio --publish=10022:22 --publish=10080:80 --env='GITLAB_SSH_PORT=10022' --env='DB_NAME=gitlab' --env='DB_USER=gitlab' --env='GITLAB_HTTPS=true' --env='DB_PASS=mypass' --env='GITLAB_HOST=git.my.host' -v /opt/docks/gitlab:/home/git/data sameersbn/gitlab:7.11.4\r\n```\r\nEverything works OK, but the branch dropdowns still point to localhost:10080.\r\n\r\nI'm talking about these ones:\r\n![scrot-20150612_201359](https://cloud.githubusercontent.com/assets/3862920/8135390/aa30409e-113f-11e5-83cd-7c35fdfa409b.jpg)"},"comment":{"url":"https://api.github.com/repos/sameersbn/docker-gitlab/issues/comments/112078968","html_url":"https://github.com/sameersbn/docker-gitlab/issues/345#issuecomment-112078968","issue_url":"https://api.github.com/repos/sameersbn/docker-gitlab/issues/345","id":112078968,"user":{"login":"sameersbn","id":410147,"avatar_url":"https://avatars.githubusercontent.com/u/410147?v=3","gravatar_id":"","url":"https://api.github.com/users/sameersbn","html_url":"https://github.com/sameersbn","followers_url":"https://api.github.com/users/sameersbn/followers","following_url":"https://api.github.com/users/sameersbn/following{/other_user}","gists_url":"https://api.github.com/users/sameersbn/gists{/gist_id}","starred_url":"https://api.github.com/users/sameersbn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sameersbn/subscriptions","organizations_url":"https://api.github.com/users/sameersbn/orgs","repos_url":"https://api.github.com/users/sameersbn/repos","events_url":"https://api.github.com/users/sameersbn/events{/privacy}","received_events_url":"https://api.github.com/users/sameersbn/received_events","type":"User","site_admin":false},"created_at":"2015-06-15T13:53:12Z","updated_at":"2015-06-15T13:53:12Z","body":"@utrack @Z3roCoder FWIW, here is my nginx reverse proxy configuration\r\n\r\n```nginx\r\nupstream gitlab {\r\n  server                    172.17.42.1:10080 fail_timeout=0;\r\n}\r\n\r\n# let gitlab deal with the redirection\r\nserver {\r\n  listen                    80;\r\n  server_name               git.example.com;\r\n  server_tokens             off;\r\n  root                      /dev/null;\r\n\r\n  # Increase this if you want to upload larger attachments\r\n  client_max_body_size      20m;\r\n\r\n  # individual nginx logs for this vhost\r\n  access_log                /var/log/nginx/gitlab_access.log;\r\n  error_log                 /var/log/nginx/gitlab_error.log;\r\n\r\n  location / {\r\n    proxy_read_timeout      300;\r\n    proxy_connect_timeout   300;\r\n    proxy_redirect          off;\r\n\r\n    proxy_set_header        X-Forwarded-Proto $scheme;\r\n    proxy_set_header        Host              $http_host;\r\n    proxy_set_header        X-Real-IP         $remote_addr;\r\n    proxy_set_header        X-Forwarded-For   $proxy_add_x_forwarded_for;\r\n    proxy_set_header        X-Frame-Options   SAMEORIGIN;\r\n\r\n    proxy_pass              http://gitlab;\r\n  }\r\n}\r\n\r\nserver {\r\n  listen                    443   ssl spdy;\r\n  server_name               git.example.com;\r\n  server_tokens             off;\r\n  root                      /dev/null;\r\n\r\n  ## Increase this if you want to upload larger attachments\r\n  client_max_body_size      20m;\r\n\r\n  ## SSL\r\n  ssl                       on;\r\n  ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE\r\n  ssl_prefer_server_ciphers on;\r\n\r\n  ssl_ciphers 'ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA:DES-CBC3-SHA:HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4';\r\n\r\n  ssl_session_cache builtin:1000  shared:SSL:10m;\r\n\r\n  ssl_certificate /etc/nginx/ssl/server.crt;\r\n  ssl_certificate_key /etc/nginx/ssl/server.key;\r\n  ssl_dhparam /etc/nginx/ssl/dhparam.pem;\r\n\r\n  ## Individual nginx logs for this vhost\r\n  access_log                /var/log/nginx/gitlab_ssl_access.log;\r\n  error_log                 /var/log/nginx/gitlab_ssl_error.log;\r\n\r\n  location / {\r\n    ## If you use https make sure you disable gzip compression\r\n    ## to be safe against BREACH attack.\r\n    gzip                    off;\r\n\r\n    proxy_read_timeout      300;\r\n    proxy_connect_timeout   300;\r\n    proxy_redirect          off;\r\n\r\n    proxy_set_header        Host                $http_host;\r\n    proxy_set_header        X-Real-IP           $remote_addr;\r\n    proxy_set_header        X-Forwarded-For     $proxy_add_x_forwarded_for;\r\n    proxy_set_header        X-Forwarded-Proto   https;\r\n    proxy_set_header        X-Frame-Options     SAMEORIGIN;\r\n\r\n    proxy_pass http://gitlab;\r\n  }\r\n}\r\n```"}}