S
S
Sergey2014-08-19 21:33:59
linux
Sergey, 2014-08-19 21:33:59

Nginx and gitlab installation?

I put gitlab according to the instructions: https://about.gitlab.com/downloads/
I put it on the server.
I entered the domain that I specified in the settings on the local PC in /etc/hosts.
Navigating this domain - standard nginx greeting.
I think that the problem is in the nginx settings, it works for me in conjunction with apache.
I would like to change the config for gitlaba, but where is it located? in /etc/nginx there
is nothing in /etc/gitlab either.
gitlab-ctl status tells me:


# gitlab-ctl status
run: nginx: (pid 17101) 2s; run: log: (pid 14442) 770s
run: postgresql: (pid 16321) 326s; run: log: (pid 13992) 1110s
run: redis: (pid 16323) 326s; run: log: (pid 13907) 1116s
run: sidekiq: (pid 16350) 324s; run: log: (pid 14427) 772s
run: unicorn: (pid 17105) 1s; run: log: (pid 14405) 778s

Those. everything seems to be up and running. reloaded nginx.
Where to dig?
System ubuntu 14.04 server
UPD.
Gitlab logs show [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
But I don't want to bind another port for my sites on the server, where can I change the nginx config directly for gitlab?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey, 2014-08-20
@butteff

In general, ports can be changed in the gitlab config /etc/gitlab/gitlab.rb I
did this:
# Change the external_url to the address your users will type in their browser
external_url ' gitlab.lol '
#nginx['listen_addresses'] = ["0.0.0.0", "[90]"]
nginx['port']=90
unicorn ['port'] = 9292
Accordingly, I have to access gitlab.lol:90 ' from the browser, but this suits me perfectly

_
_ _, 2014-08-19
@AMar4enko

Maybe ssl / non-ssl mixed up?
For example, nginx listens to the ssl port, and you break on 80. You get the nginx welcome page ..
Well, attach the nginx config somehow, for example, to pastebin.

I
Igor, 2014-08-20
@merryjane

Show the output of the commands:
netstat -ntpua | egrep 'nginx|apache'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question