Forwarding to GitLab Subdomain with Existing Nginx Installation

前端 未结 6 1749
日久生厌
日久生厌 2020-12-29 14:53

I\'ve been following the instructions from the GitLab wiki, however, it seems as if some key pieces of information are missing. In the section \"Using a Non-Bundled Web Serv

6条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-29 15:12

    Run with existing Nginx server on Ubuntu

    1. Install gitlab
    2. Edit configuration file /etc/gitlab/gitlab.rb and uncomment or append following:
      • nginx['enable'] = false
      • unicorn['enable'] = false
      • gitlab_rails['internal_api_url'] = 'http://git.yourdomain.com'
      • web_server['external_users'] = ['www-data']
    3. Start bundled postgres database server
      • sudo gitlab-ctl start postgresql
    4. Reconfigure
      • sudo gitlab-ctl reconfigure
    5. Add nginx configuration file for git lab to /etc/nginx/sites-available/gitlab-example.conf and enable it via sites-enabled
      • https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/settings/nginx.md#using-a-non-bundled-web-server
    6. Enable passenger for nginx
      • https://www.phusionpassenger.com/library/install/nginx/install/oss/trusty
    7. Restart nginx
      • sudo service nginx restart
    8. Start redis
      • sudo gitlab-ctl start redis

提交回复
热议问题