Which IIQ version are you inquiring about?
8.1p6
I’ve got a web services app that is pointing to an internal resource, but is outside the scope of our configured Dhttps.nonProxyHosts in the tomcat config.
Is there a flag in the app definition that can ‘ignore’ the configured proxy? I’d rather not have to go to all my hosts and modify the tomcat config for this (and future cases). It would be nice to just deploy this and have IIQ honor the preference at the app level. I looked at the documentation, and didn’t see anything that explicitly says ‘proxy off’:
I tried setting https.proxyHost and https.proxyPort to empty strings in the application definition, but no luck.
Any thoughts? Or any other ideas to accomplish what I’m looking to do?
TIA!
Not sure if it will work you can try below in before operation rule may be?
System.setProperty("http.proxyHost", host);
System.setProperty("http.proxyPort", port);
System.setProperty("http.nonProxyHosts", "localhost|127.0.0.1");
But it is definitely not a good idea to set proxy this way
Hi @josefismael actually your solution should work which is:
<entry key="https.proxyHost" value=""/>
<entry key="https.proxyPort" value=""/>
<entry key="http.proxyHost" value=""/>
<entry key="http.proxyPort" value=""/>
By setting proxy-related keys to empty values, you effectively bypass the global proxy settings for this specific application.
Also, you can do what @pradeep1602 mentioned as well, and I second that it’s not recommended.
Moreover, you can achieve that on the network level by configuring internal DNS or routing to bypass the proxy for the specified resource.
thanks - unfortunately this didn’t bypass the tomcat config on the server itself. For scalability, we’ll likely just have to distribute a config env file that sets the JAVA_OPTS to the values we need.
1 Like
Good that you achieved your target here, and thanks for sharing that with us as well!
Regards,
Munammad