> On 21.12.2015, at 10:19, Max Kovgan wrote:
>
> After setting it to: IP:EXT_PORT, everything started working.
Weird, we should already support both cases (i.e. separate and combined
host/port). Maybe you could take a look at this and compare to your setup?
To Max,
Would you mind sharing your nginx jenkins con file? I have followed many
URL on internet about proxy Jenkins with nginx but I am never able to make
the ³Warning Šyour proxy is broken ..² to disappear.
Thank you
-Indra
On 12/21/15, 10:39 AM, "jenkinsci-users@googlegroups.com on behalf
Hi, Daniel!
Thanks, for the direction.
whatever you've suggested, I ran:
import hudson.model.*
import jenkins.model.*
import org.kohsuke.stapler.*
println
org.kohsuke.stapler.Stapler.getCurrentRequest().getHeader('X-Forwarded-Port')
println Jenkins.instance.rootUrlFromRequest
The output was:
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!
On Dec 21, 2015 10:51, "Max Kovgan" wrote:
> Hi, Daniel!
> Thanks, for the direction.
> whatever
On 20.12.2015, at 23:13, Max Kovgan wrote:
> So, is this possible with my nginx misconfigured?
Are you setting X-Forwarded-Port? Find out by running
`org.kohsuke.stapler.Stapler.getCurrentRequest().getHeader('X-Forwarded-Port')`
in the script console.
Also interesting
hi, everyone.
I've been kindly asked to setup a jenkins behind reverse proxy, via
https on port X (X!=443)
Now, this server will probably need to serve some static content, so
what the hell, let's make it run with prefix as well.
I've naively gone through:
*