Skip to content

Conversation

taras
Copy link

@taras taras commented Feb 6, 2024

Motivation

HTTPS for corporate proxies doesn't work after #651 because it assumed that @nestjs/axios took care of correctly extracting proxy configuration from the environment variables. In reality, axios proxy setup is broken as mentioned in https://stackoverflow.com/a/53399378 and axios/axios#2072 (comment).

The recommended workaround is to disable axios' proxy functionality and use a proxy agent.

Approach

Use proxy-agent to create an agent that automatically uses an appropriate proxy based on environment variables. Configure the HttpModule to use the agent.

TODO

  • Install the dependency
  • Test it to verify

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant