This is how to install Nginx for a website and get it working with an existing gitlab repo (that uses a bundled version of Nginx). It took me a couple of days to get everything sorted out, so I wanted to share the steps it took to get it all working.
Now the gitlab runs on your subdomain which you should access.
Easiest way to enable it is to run ufw allow 7001. Since the gitlab runs on my local server, therefore the port 7001 has to been allowed to reach from the outside. Open nf with nano /etc/nginx/nf.Ĭonfigure firewall to export port 7001 ( Optional) Change this line server_name YOURSERVER_FQDN to server_name Change this line listen :80 default_server to listen :7001 // gitlab runs on port 7001ģ.6. Open this file with nano /etc/nginx/sites-enabled/nf.ģ.4. Go to the directory where the file is, and copy this file to nginx with cp /directory-to-this-file/nf /etc/nginx/sites-enabled.ģ.3.
Download the nf from gitlab repository.ģ.2. Uncomment and change the line web_server = to web_server =. Uncomment and change the line nginx = true to nginx = false.Ģ.4. Edit the line external_url 'GENERATED_EXTERNAL_URL' to external_url ''.Ģ.3. line user Open gitlab.rb with nano /etc/gitlab/gitlab.rb.Ģ.2. Would have saved me a lot of confusion and wasted time.īased on answer i simplified the process, and I have got through the same setup twice. I'm super psyched now, hope anyone who has as specific of a problem in the future comes across this, that Wiki should really be updated to simply remove/merge those two sections and explain/link to how to install Passenger into an existing Nginx installation.