Re: Hide Jenkins on port 8080 behind NGINX using proxy_pass ?

2015-10-16 Thread edofthemountain
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

Re: Hide Jenkins on port 8080 behind NGINX using proxy_pass ?

2015-10-16 Thread edofthemountain
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

Re: Hide Jenkins on port 8080 behind NGINX using proxy_pass ?

2015-10-16 Thread edofthemountain
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

Re: Hide Jenkins on port 8080 behind NGINX using proxy_pass ?

2015-10-16 Thread edofthemountain
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 _

Re: Hide Jenkins on port 8080 behind NGINX using proxy_pass ?

2015-10-16 Thread edofthemountain
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

Re: Hide Jenkins on port 8080 behind NGINX using proxy_pass ?

2015-10-16 Thread edofthemountain
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

Re: Hide Jenkins on port 8080 behind NGINX using proxy_pass ?

2015-10-15 Thread edofthemountain
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

Hide Jenkins on port 8080 behind NGINX using proxy_pass ?

2015-10-15 Thread edofthemountain
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