Incorrect hostname on user, group, project pages despite external_url setting
Hi everyone!
I am not 100% sure if this is omnibus related, but I think so.
I have omnibus-gitlab running in a Ubuntu 16.04 VM under Hyper-V. Nothing else is installed in the VM, I just set up the server 2 weeks ago. I have about 2 years experience with running omnibus-gitlab on other servers.
the VM is running behind a IIS-based reverse proxy using Applicqation Request Routing. Gitlab is running on HTTP internally, HTTPS is handled by the reverse proxy, as documented here. Its external hostname is configured in gitlab.rb, further settings can be found at the end of this post:
external_url 'https://git.myhostname.tld/
everything is running fine so far, the gitlab instance is reachable under its external hostname both from the internet and our LAN through the reverse proxy.
- On project pages, I get the correct cloning url with the external hostname.
- Notification emails contain the correct hostname.
- The Instruction text of new, empty projects also has the correct hostname.
However:
- In the "Edit" section of any project, under the Rename entry, I get https://vm-hostname/ as the base, instead of https://git.myhostname.tld/.
- The same is the case for the Group Path entry of a group,
- The same is the case for the Change username entry under Personal Settings -> Account
and possibly some other places that I missed.
Everything else works fine (LDAP auth, notification emails, backups, pulling/pushing).
Is it a misconfiguration on my side or is there a bug in the package for this (maybe unusual) configuration behind a reverse proxy?
Thanks in advance!
This is my (anonymized) gitlab.rb:
external_url 'https://git.myhostname.tld/'
gitlab_rails['gitlab_email_enabled'] = true
gitlab_rails['gitlab_email_from'] = 'notifications@myhostname.tld'
gitlab_rails['gitlab_email_display_name'] = 'My Display Name'
gitlab_rails['gitlab_email_reply_to'] = 'notifications@myhostname.tld'
gitlab_rails['ldap_enabled'] = true
gitlab_rails['ldap_servers'] = YAML.load <<-'EOS' # remember to close this block with 'EOS' below
main: # 'main' is the GitLab 'provider ID' of this LDAP server
label: 'LDAP'
host: 'domain-controller.fqdn'
port: 389
uid: 'sAMAccountName'
method: 'tls' # "tls" or "ssl" or "plain"
bind_dn: 'CN=ldapadmin,OU=Admins,OU=Users,OU=MyOU,DC=MyDC,DC=local'
password: 'MyPassword'
active_directory: true
allow_username_or_email_login: false
block_auto_created_users: false
base: 'OU=Users,OU=MyOU,DC=MyDC,DC=local'
user_filter: ''
attributes:
username: ['uid', 'userid', 'sAMAccountName']
email: ['mail', 'email', 'userPrincipalName']
name: 'cn'
first_name: 'givenName'
last_name: 'sn'
EOS
gitlab_rails['backup_path'] = '/mnt/path/to/backup/storage'
gitlab_rails['backup_keep_time'] = 2419200
gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = "smtp.mymailserver.tld"
gitlab_rails['smtp_port'] = 587
gitlab_rails['smtp_user_name'] = "notifications@myhostname.tld"
gitlab_rails['smtp_password'] = "SMTPPassword"
gitlab_rails['smtp_domain'] = "myhostname.tld"
gitlab_rails['smtp_authentication'] = "login"
gitlab_rails['smtp_enable_starttls_auto'] = true
gitlab_rails['smtp_tls'] = false
gitlab_rails['smtp_openssl_verify_mode'] = 'none'
nginx['listen_port'] = 80 # override only if you use a reverse proxy: https://docs.gitlab.com/omnibus/settings/nginx.html#setting-the-nginx-listen-port
nginx['listen_https'] = false # override only if your reverse proxy internally communicates over HTTP: https://docs.gitlab.com/omnibus/settings/nginx.html#supporting-proxied-ssl
nginx['proxy_set_headers'] = {
"X-Forwarded-Proto" => "https",
"X-Forwarded-Ssl" => "on",
}