Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spring-Boot behind a network proxy

I am currently implementing an OpenID authentication based on this example. Now I am developing behind a network proxy, therefore the server cannot connect to google. The java proxy settings seem to not have any effect. I also found this stackoverflow question, but I cannot figure out where to put the code. How can I configure the proxy for my spring boot container?

thanks

like image 253
KenavR Avatar asked May 11 '15 12:05

KenavR


2 Answers

Not sure if this is of any use, but I'm just working through a Spring Boot tutorial currently (https://spring.io/guides/gs/integration/) and hit a similar network proxy issue. This was resolved just by providing the JVM arguments

-Dhttp.proxyHost=your.proxy.net -Dhttp.proxyPort=8080
like image 162
t_barbz Avatar answered Oct 16 '22 06:10

t_barbz


Adding just the two provided arguments didn't work for me. Full list that did it is this:

-Dhttp.proxyHost=somesite.com -Dhttp.proxyPort=4321 
-Dhttps.proxyHost=somesite.com -Dhttps.proxyPort=4321 -Dhttps.proxySet=true 
-Dhttp.proxySet=true
like image 39
BadChanneler Avatar answered Oct 16 '22 04:10

BadChanneler