Skip to content

Use agent for proxy configuration#1

Closed
taras wants to merge 1 commit intomasterfrom
restore-proxy-functionality
Closed

Use agent for proxy configuration#1
taras wants to merge 1 commit intomasterfrom
restore-proxy-functionality

Conversation

@taras
Copy link
Owner

@taras taras commented Feb 6, 2024

Motivation

HTTPS for corporate proxies doesn't work after OpenAPITools#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

@taras taras closed this Feb 6, 2024
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