Kong API Gateway behind forward proxy

Hi everyone,

I’m facing an issue with my network setup and could use some advice. My environment requires using an HTTP forward proxy to access the internet. I’ve set up a Ubuntu server with Kong as the API gateway. While I can successfully access external apt URLs using curl, I’m encountering a problem when Kong tries to access external API URLs.

The Kong error log shows an “upstream timeout” message, suggesting that Kong isn’t using the HTTP forward proxy to reach the internet.

Here’s what I’ve done so far:

Set up a forward proxy in my network.
Configured Kong on Ubuntu to act as the API gateway.
Verified that curl can access external apt URLs via the proxy.
Issue:

When Kong attempts to access external APIs, it results in an “upstream timeout” error, indicating it’s not using the configured HTTP forward proxy.

Questions:

How can I ensure Kong uses the HTTP forward proxy for all outbound requests?
Are there specific settings or plugins in Kong that need adjustment for proxy use?
Has anyone faced a similar issue and found a solution?
Any guidance or suggestions would be greatly appreciated. Thank you!