Can we set "conf/http.properties+HTTPClient.proxy.host" in API proxy code

If we have to configure forward proxying to back end server, we will modify "message-processor.properties" to add host value of a proxy server in

"conf/http.properties+HTTPClient.proxy.host" property and restart MP.

Instead of modifying the property file, can we set the same in Proxy API code?? Something similar to how we can override, "use.proxy" setting.

Thank you.

1 2 317
2 REPLIES 2

No, I don't believe you can do that.

relevant doc:

https://docs.apigee.com/api-platform/reference/endpoint-properties-reference

It says there:

If use.proxy is set to true, and proxy configurations are specified in http.properties (on-premises deployments only), then target connections are set to use the specified proxy.

That tells me that you need to set the proxy host and etc, via overrides in the http.properties file.

Can you describe your scenario? Do you need to be able to use different "http.proxy" settings for different targets?

Hi Dino,

Thanks for your response, you are correct, we have to use different "http.proxy" settings.

Our scenario: Few of existing proxies hitting target using current http.proxy settings in "message-processor.properties" property file.

Now, there is a requirement to hit Service Now end point via a different http.proxy setting.

Thank you.