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

    Interface ServiceRouteOptions

    Options for creating service routes

    interface ServiceRouteOptions {
        enableCompression?: boolean;
        headers?: Record<string, string[]>;
        host: string;
        id: string;
        path?: string;
        priority?: number;
        serviceId?: string;
        serviceType?: string;
        upstream: string | { dial: string }[];
    }
    Index

    Properties

    enableCompression?: boolean

    Enable compression (default: true)

    headers?: Record<string, string[]>

    Additional response headers

    host: string

    Host to match (e.g., "api.localhost")

    id: string

    Route identifier

    path?: string

    Path to match (default: "/*")

    priority?: number

    Explicit priority (optional)

    serviceId?: string

    Service identifier for X-ASD-Service-ID header

    serviceType?: string

    Service type for X-ASD-Service-Type header

    upstream: string | { dial: string }[]

    Upstream backend (dial address or array of upstreams)