[(master)]: null http://$EXT_IP/jenkins/
Yet, I expected to see:
[(master)]: $EXT_PORT https://$EXT_IP:$EXT_PORT/jenkins/My nginx config did not have:proxy_set_header X-Forwarded-Port $EXT_PORT;proxy_set_header X-Forwarded-Proto https;I have "played" a couple of minutes to this groovy:import hudson.model.* import jenkins.model.* import org.kohsuke.stapler.* for (def suffix in ["Port", "Proto", "For"]) { def header = "X-Forwarded-" + suffix println "Header: " + header + "=" + org.kohsuke.stapler.Stapler.getCurrentRequest().getHeader(header) } println "Jenkins.instance.rootUrlFromRequest=${Jenkins.instance.rootUrlFromRequest}"Running it renders good output.Now, after having that set, I am getting a "nicer" erroneous behaviour:Port is ignored, and the URLs get to:https://$EXT_IP/jenkins/$rest_of_the_path,and it now renders "access denied", which is cool (b/c on https port 443 we have a different application)BUT I WANT NGINX + JENKINS to workWhat am I doing wrong ?I'm posting my current /etc/nginx/conf.d/ssl.location.d/jenkins.conf___________________________________________
I managed to fix the issue: the value of header "Host" contained only IP.
After setting it to: IP:EXT_PORT, everything started working.
I'll post this to wiki later on.
Regards!
--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/9ZCj5Jrcpm0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f669bb9e-1816-49c5-a5b2-5cd3f6b92df3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.