gitbucket icon indicating copy to clipboard operation
gitbucket copied to clipboard

Not work the webhook under a proxy.

Open tomboy67 opened this issue 11 years ago • 3 comments

gitbucket running on my server under a proxy. webhook work nice when destination ip on local. but not work when global ip. Do you gitbucket webhook supported under a proxy environment?

tomboy67 avatar Apr 12 '15 11:04 tomboy67

Did you try to run gitbucket with these -D options ?

-Dhttp.proxyHost=10.0.0.100 -Dhttp.proxyPort=8800 -Dhttps.proxyHost=10.0.0.100 -Dhttps.proxyPort=8800 -Djava.net.useSystemProxies=true

(replace 10.0.0.100 by your http proxy host and 8800 by your http proxy port)

Full command would be:

java -Dhttp.proxyHost=10.0.0.100 -Dhttp.proxyPort=8800 \
     -Dhttps.proxyHost=10.0.0.100 -Dhttps.proxyPort=8800 \
     -Djava.net.useSystemProxies=true \
     -jar gitbucket.war

kerphi avatar Jan 19 '16 19:01 kerphi

It seems that the HttpClient library used in gitbucket/src/main/scala/gitbucket/core/service/WebHookService.scala does not take out of the box the usual JVM defines related to the proxy management (see .https://hc.apache.org/httpcomponents-client-ga/tutorial/html/connmgmt.html#d5e485)

ecirtap avatar Jan 25 '16 18:01 ecirtap

fixed by #1203

nazoking avatar Jul 19 '16 03:07 nazoking