@accelerated-software-development/caddy-api-client - v0.2.2
    Preparing search index...

    Function buildReverseProxyHandler

    • Build a reverse proxy handler

      Parameters

      • dial: string

        Dial address (host:port or https://host:port)

      • Optionaloptions: {
            tls?: boolean;
            tlsInsecureSkipVerify?: boolean;
            tlsServerName?: string;
            tlsTrustedCACerts?: string;
        }

        Optional transport configuration

      Returns CaddyRouteHandler

      Reverse proxy handler

      // HTTP backend (default)
      buildReverseProxyHandler("nginx:80")
      // HTTPS backend with TLS
      buildReverseProxyHandler("https://internal-service:443")
      // HTTPS backend with custom TLS settings
      buildReverseProxyHandler("internal-service:443", {
      tls: true,
      tlsServerName: "internal.example.com",
      tlsInsecureSkipVerify: false
      })