How do we change the URL of a working GitLab install?

前端 未结 4 2058
时光说笑
时光说笑 2020-11-30 17:41

I have set up and we are running a default install of GitLab v6.0.1 (we\'re about to upgrade as well). It was a \"Production\" setup, following this guide precisely to the l

4条回答
  •  既然无缘
    2020-11-30 18:29

    Actually, this is NOT totally correct. I arrived at this page, trying to answer this question myself, as we are transitioning production GitLab server from http:// to https:// and most stuff is working as described above, but when you login to https://server and everything looks fine ... except when you browse to a project or repository, and it displays the SSH and HTTP instructions... It says "http" and the instructions it displays also say "http".

    I found some more things to edit though:

    /home/git/gitlab/config/gitlab.yml
      production: &base
        gitlab:
          host: git.domain.com
    
          # Also edit these:
          port: 443
          https: true
    ...
    

    and

    /etc/nginx/sites-available/gitlab
      server {
        server_name git.domain.com;
    
        # Also edit these:
        listen 443 ssl;
        ssl_certificate     /etc/ssl/certs/somecert.crt;
        ssl_certificate_key /etc/ssl/private/somekey.key;
    
    ...
    

提交回复
热议问题