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

    Interface LoadBalancerRouteOptions

    Options for creating load balancer routes

    interface LoadBalancerRouteOptions {
        headers?: Record<string, string[]>;
        healthCheck?: { interval?: string; path?: string; timeout?: string };
        host: string;
        id: string;
        path?: string;
        policy?: "first" | "random" | "least_conn" | "round_robin" | "ip_hash";
        serviceId?: string;
        upstreams: string[] | { dial: string }[];
    }
    Index

    Properties

    headers?: Record<string, string[]>

    Additional response headers

    healthCheck?: { interval?: string; path?: string; timeout?: string }

    Enable active health checks

    host: string

    Host to match

    id: string

    Route identifier

    path?: string

    Path to match (default: "/*")

    policy?: "first" | "random" | "least_conn" | "round_robin" | "ip_hash"

    Load balancing policy

    serviceId?: string

    Service identifier

    upstreams: string[] | { dial: string }[]

    Array of upstream backends