v3.10.3: feat(#340) fix pass-through headers for proxying via nginx. add second proxy example.

This commit is contained in:
tiagosiebler
2024-05-07 13:10:12 +01:00
parent 00261a2380
commit bd10bd9e63
6 changed files with 68 additions and 3 deletions

View File

@@ -17,7 +17,12 @@ const client = new RestClientV5(
// recv_window: 10000,
},
{
/**
* Axios has a native way of supporting http/https proxies. It works for most proxy services but not all.
* If you have issues making any proxied requests this way, take a look at the rest-v5-proxies2.ts example using the https-proxy-agent.
*/
proxy: {
protocol: 'http', // or 'https'
host: 'proxyhost',
port: Number('proxyport'),
auth: {