The chef utility that gitlab uses is useful.
I added my location proxy_pass to the following template, and when I run
gitlab-ctl reconfigure it now includes it.
/opt/gitlab/embedded/cookbooks/gitlab/recipes/nginx-gitlab-http.conf.erb
All is good! Problem solved.
Thank you Nurahmadie !
Posted a
Thank you for your help Nurahmadi. I will look for gitlab forum solutions.
If I move the following location section inside the gitlab-http.conf file
both GitLab and Jenkins proxy_pass will works
Assuming that modifying the omnibus version of gitlab-http.conf is the only
way to make it work, then
Thank you for your reply. I am not sure I understand.
I do know Jenkins proxy_pass will work if I do the following:
1 - gitlab-ctl stop
2 - Comment-out the "#include gitlab-http.conf" in the nginx.conf file
3 - gitlab-ctl start
4 - http://localhost/jenkins takes me to http://localhost:8081/jen
Is there a NGINX configuration command to exclude listening for /jenkins/ in
the gitlab-http.conf ?
Something in the gitlab-http.conf is preventing my proxy_pass from working
in nginx-jenkins.conf ?
Posted at Nginx Forum:
https://forum.nginx.org/read.php?2,262255,262280#msg-262280
_
Sorry typo in posting...
Shouldn't the following result in http://127.0.0.1/test1 passing to
http://google.com ? It does not. It redirects back to 127.0.0.1
server {
listen *:80;
location /test1/ {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Hos
I am trying to simplify my proxy_pass problem and eliminate port issues.
Shouldn't the following result in http://127.0.0.1/test1 passing to
http://google.com ? It redirects back to 127.0.0.1
server {
listen *:80;
location /test1127.0.0.1/ {
proxy_set_header X-Forwarded-For $proxy_a
Thank you Nurahmadie.
Removal of trailing slash did not help sadly.
Posted at Nginx Forum:
https://forum.nginx.org/read.php?2,262255,262257#msg-262257
___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
How can I configure NGINX to pass
http://172.17.144.123/jenkins
to this
http://172.17.144.123:8080/jenkins
I have Gitlab + NGINX and Jenkins running on the same CentOS 6.7 machine.
I access Jenkins with the following URL:
http://172.17.144.123:8080/jenkins/
GitLab opens using this URL:
http://1