Forward Proxy Advanced

Enterprise only

Forward HTTP requests with authv1.0+

Set up the Forward Proxy plugin to forward requests through a transparent proxy with authentication.

Environment variables

  • PROXY_HOSTNAME: The name of your HTTP host

  • PROXY_USERNAME: The username you intend to use for authentication.

  • PROXY_PASS: The password associated with the username.

Set up the plugin

Add this section to your kong.yaml configuration file:

_format_version: "3.0"
plugins:
  - name: forward-proxy
    config:
      http_proxy_host: ${{ env "DECK_PROXY_HOSTNAME" }}
      http_proxy_port: 80
      proxy_scheme: http
      https_verify: false
      x_headers: transparent
      auth_username: ${{ env "DECK_PROXY_USERNAME" }}
      auth_password: ${{ env "DECK_PROXY_PASS" }}
Copied to clipboard!

Did this doc help?

Something wrong?

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!