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

    Interface FileServerRouteOptions

    Options for building a file server route

    interface FileServerRouteOptions {
        browse?: boolean;
        browseTemplate?: string;
        hidePatterns?: string[];
        id?: string;
        indexNames?: string[];
        path: string;
        precompressed?: boolean;
        priority?: number;
        root: string;
    }
    Index

    Properties

    browse?: boolean

    Enable directory browsing

    browseTemplate?: string

    Custom browse template file path

    hidePatterns?: string[]

    File patterns to hide (e.g., [".git", ".env"])

    id?: string

    Route ID

    indexNames?: string[]

    Index file names (default: ["index.html"])

    path: string

    Path prefix to match (e.g., "/static/*")

    precompressed?: boolean

    Enable precompressed file support (gzip, brotli)

    priority?: number

    Route priority

    root: string

    Root directory to serve files from