docs: proxy - add excludes via NO_PROXY (#7294)

This commit is contained in:
morph027 2024-02-01 19:31:42 +01:00 committed by GitHub
parent 8cacea94da
commit 230cb0bbdc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -125,3 +125,5 @@ Drawbacks
Configuring a proxy means that all requests are intercepted, but the MotoProxy can only handle requests to AWS. Configuring a proxy means that all requests are intercepted, but the MotoProxy can only handle requests to AWS.
If your test includes a call to `https://www.thirdpartyservice.com`, that will also be intercepted by `MotoProxy` - and subsequently throw an error because it doesn't know how to handle non-AWS requests. If your test includes a call to `https://www.thirdpartyservice.com`, that will also be intercepted by `MotoProxy` - and subsequently throw an error because it doesn't know how to handle non-AWS requests.
If your test setup supports the `NO_PROXY` environment variable, you could exclude `www.thirdpartyservice.com` from being proxied by setting `NO_PROXY=www.thirdpartyservice.com`. `NO_PROXY` accepts a comma separated list of domains, e.g. `NO_PROXY=.thirdpartyservice.com,api.anotherservice.com`.