Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

Setup GitLab to run on a subdomain

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
7 posts • Page 1 of 1
rajbdilip
Posts: 13
Joined: Mon Jul 18, 2016 1:50 am

Setup GitLab to run on a subdomain
  • Quote

Post by rajbdilip » Tue Dec 13, 2016 6:10 pm

I installed GitLab following the steps on their website. (https://about.gitlab.com/downloads/#debian8)

I already have a website setup on my domain. I want to be able to access GitLab on a subdomain i.e. https://gitlab.mydomain.com.

How can I do this?
Top

ScIT
Support team
Posts: 617
Joined: Mon Feb 23, 2015 4:13 pm

Os: Ubuntu 17x
Web: apache + nginx
Re: Setup GitLab to run on a subdomain
  • Quote

Post by ScIT » Tue Dec 13, 2016 7:46 pm

For GitLab you need an own server/VPS, I would not suggest you to install it on top on an existing VestaCP server. Then just create a dns record for gitlab.mydomain.com, install GitLab and configure it to this domain.
Top

rajbdilip
Posts: 13
Joined: Mon Jul 18, 2016 1:50 am

Re: Setup GitLab to run on a subdomain
  • Quote

Post by rajbdilip » Wed Dec 14, 2016 4:41 am

ScIT wrote:For GitLab you need an own server/VPS, I would not suggest you to install it on top on an existing VestaCP server. Then just create a dns record for gitlab.mydomain.com, install GitLab and configure it to this domain.
Why isn't it a great idea to install GitLab on top of VestaCP server?

And what DNS record would I create and what would it point to?
Top

ivanh
Posts: 41
Joined: Sun Mar 23, 2014 6:40 am

Re: Setup GitLab to run on a subdomain
  • Quote

Post by ivanh » Wed Dec 14, 2016 7:00 am

May I suggest an alternative to GitLab that plays nicely with VestaCP.

https://gist.github.com/joubertredrat/7 ... 660c9d760a
Top

Kilandor
Posts: 3
Joined: Mon Nov 24, 2014 4:03 pm

Re: Setup GitLab to run on a subdomain
  • Quote

Post by Kilandor » Tue Dec 20, 2016 11:59 pm

I have been running Gitlab with vesta for over 2 years now. Their are no problems outside of getting the configuration/setup correct which is pretty simple.

You need to configure gitlab to not use its internal server. Then use the Nginx Config provided with gitlab and simply modify and add a configuration for it.

I am using Ubuntu 14.04 LTS with the apt-get omnibus version of Gitlab, it makes it much easier to maintain than manually installing gitlab.
I will mention original setup I had some issues with permissions and getting the configuration right. However I think on the newer versions I did it pretty quickly.

This should more or less cover most of the important points about it.
https://gitlab.com/gitlab-org/omnibus-g ... s/nginx.md


I think the vhost block looks a little different than mine. I also have an issue with HTTP access to the git repo's but I don't care about that.

For the most, its disable http with gitlab, copy over the nginx config and load it. Then restart nginx.
Top

fireagle
Posts: 1
Joined: Sat Feb 04, 2017 10:52 pm

Re: Setup GitLab to run on a subdomain
  • Quote

Post by fireagle » Sun Feb 05, 2017 12:15 am

Was having the same problem.
It seems the firewall was not releasing the required ports.
I was able to solve these commands.
# Sudo systemctl start firewalld.service
(Services will be unavailable)
# Sudo systemctl stop firewalld.service
(Here I deactivate all services)
Restart the server.
And it will work
(Centos 7 vpn)
Top

hdavis84
Posts: 13
Joined: Sat Apr 29, 2017 7:55 pm

Re: Setup GitLab to run on a subdomain
  • Quote

Post by hdavis84 » Sun Jun 24, 2018 5:58 pm

Kilandor wrote: ↑
Tue Dec 20, 2016 11:59 pm
Then use the Nginx Config provided with gitlab and simply modify and add a configuration for it.
I'm having a little trouble finding this config you speak of. I've played around with a few configs I found but have not found success. If you could help not only me but others in giving an example config for use with gitlab, that would be wonderful. Of course, with your domain and sensitive info redacted.
Top


Post Reply
  • Print view

7 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password