By tvvocold
i have followed this and set the gitlab done https://www.digitalocean.com/community/tutorials/how-to-use-the-gitlab-one-click-install-image-to-manage-git-repositories now i need set another app (in port 9700) in the server and how could i edit the nginx?(i try lsof -i :80 and find it was nginx that gitlab use) but i couldn’t find nginx setting file so i try (sudo apt-get install nginx) and it works (i find the setting file in /etc/nginx and i edit it and restart nginx but nothing worked), this is confused, does this ubuntu already has a nginx?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
The one-click image uses GitLab’s “omnibus” installer. It is designed to be single purpose, but of course you are free to hack on it. GitLab installs its own bundled copy of Nginx to /opt/gitlab/embedded/ This is managed by Chef scripts, and it’s configuration files should not be edited directly as your changes will be overwritten.
You’d be best off installing the default nginx package along side of the bundled one. Of course, as you’ve noticed it will initially fail to start. This is because GitLab is already bound to port 80. You’ll need to edit the default Nginx configuration to listen on the new port first. Open /etc/nginx/sites-enabled/default and change:
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
to
server {
listen 9700 default_server;
listen [::]:9700 default_server ipv6only=on;
and start Nginx:
sudo service nginx start
You should now be able to view the Nginx default page at http://your.ip.address:9700
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.