Question
How should proxy settings be configured for IDE Services On-Premises, and is the configuration in ides.config.javaOpts sufficient? For example:
javaOpts: "-Xmx1g -Xms256m -Dhttp.proxyHost=proxy -Dhttp.proxyPort=8080 -Dhttps.proxyHost=proxy -Dhttps.proxyPort=8080”
Answer
It is recommended to configure proxy settings in the appropriate section of the server configuration file (application.yml or values.yml). The ides.config.javaOpts parameter only passes extra JVM options to the application container, and might not be sufficient for the application’s proxy requirements, causing timeout issues while using a proxy.
Here is how you can properly set up the proxy configuration in the server configuration file:
- Remove the proxy settings from the
ides.config.javaOptsparameter. - Add your proxy configuration under this section of the server configuration file. For example: (This is for
application.yml. Forvalues.yaml, add the configuration underides.configCustomization)
spring:
cloud:
gateway:
server:
webflux:
httpclient:
proxy:
username: 'username'
password: 'password'
type: http
port: 8080
non-proxy-hosts-pattern: ''
host: 'proxy'
- If your proxy does not require authentication, you can leave the username and password fields unset:
spring:
cloud:
gateway:
server:
webflux:
httpclient:
proxy:
type: http
port: 8080
non-proxy-hosts-pattern: ''
host: 'proxy'
Additionally, refer to these resources for further clarification:
Comments
0 comments
Please sign in to leave a comment.