Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 740 Bytes

File metadata and controls

38 lines (27 loc) · 740 Bytes

← Transport | Proxy (中文) | Timeouts →


HTTP(S) Proxy Configuration

Default

  • No proxy

Configure in Code

const client = new ECSClient({
  region: "cn-beijing",
  httpOptions: {
    proxy: {
      protocol: "http",
      host: "127.0.0.1",
      port: 8888,
    },
  },
});

Use Environment Variables

The SDK reads the following environment variables:

  • VOLC_PROXY_PROTOCOL: Proxy protocol (http or https)
  • VOLC_PROXY_HOST: Proxy host
  • VOLC_PROXY_PORT: Proxy port

Priority: Code configuration > environment variables.


← Transport | Proxy (中文) | Timeouts →