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

    Variable FileServerHandlerSchemaConst

    FileServerHandlerSchema: ZodObject<
        {
            browse: ZodOptional<
                ZodObject<
                    {
                        file_limit: ZodOptional<ZodNumber>;
                        reveal_symlinks: ZodOptional<ZodBoolean>;
                        sort: ZodOptional<ZodArray<ZodString, "many">>;
                        template_file: ZodOptional<ZodString>;
                    },
                    "strip",
                    ZodTypeAny,
                    {
                        file_limit?: number;
                        reveal_symlinks?: boolean;
                        sort?: string[];
                        template_file?: string;
                    },
                    {
                        file_limit?: number;
                        reveal_symlinks?: boolean;
                        sort?: string[];
                        template_file?: string;
                    },
                >,
            >;
            canonical_uris: ZodOptional<ZodBoolean>;
            etag_file_extensions: ZodOptional<ZodArray<ZodString, "many">>;
            fs: ZodOptional<ZodString>;
            hide: ZodOptional<ZodArray<ZodString, "many">>;
            index_names: ZodOptional<ZodArray<ZodString, "many">>;
            pass_thru: ZodOptional<ZodBoolean>;
            precompressed: ZodOptional<ZodAny>;
            precompressed_order: ZodOptional<ZodArray<ZodString, "many">>;
            root: ZodOptional<ZodString>;
            status_code: ZodOptional<ZodAny>;
        } & { handler: ZodLiteral<"file_server"> },
        "strip",
        ZodTypeAny,
        {
            browse?: {
                file_limit?: number;
                reveal_symlinks?: boolean;
                sort?: string[];
                template_file?: string;
            };
            canonical_uris?: boolean;
            etag_file_extensions?: string[];
            fs?: string;
            handler: "file_server";
            hide?: string[];
            index_names?: string[];
            pass_thru?: boolean;
            precompressed?: any;
            precompressed_order?: string[];
            root?: string;
            status_code?: any;
        },
        {
            browse?: {
                file_limit?: number;
                reveal_symlinks?: boolean;
                sort?: string[];
                template_file?: string;
            };
            canonical_uris?: boolean;
            etag_file_extensions?: string[];
            fs?: string;
            handler: "file_server";
            hide?: string[];
            index_names?: string[];
            pass_thru?: boolean;
            precompressed?: any;
            precompressed_order?: string[];
            root?: string;
            status_code?: any;
        },
    > = ...

    File server handler schema - serves static files from disk

    const handler = FileServerHandlerSchema.parse({
    handler: "file_server",
    root: "/var/www/html",
    index_names: ["index.html", "index.htm"],
    browse: { template_file: "/browse.html" },
    hide: [".git", ".env", "*.secret"],
    precompressed: { gzip: {}, br: {} }
    });