@darthcav/ts-http-server
    Preparing search index...

    Type Alias LauncherLocals

    Application locals decorated onto the Fastify instance and available throughout the request lifecycle.

    type LauncherLocals = {
        authPaths?: string[];
        authRealm?: string;
        host?: string;
        pkg?: Record<string, unknown>;
        port?: number;
        [key: string]: unknown;
    }

    Indexable

    • [key: string]: unknown

      Any additional application-specific locals.

    Index

    Properties

    authPaths?: string[]

    Glob patterns (picomatch) for routes that require bearer-token authentication via the verifyToken Fastify decorator. When undefined or empty, authentication is disabled.

    Example: ["/api/**"]

    authRealm?: string

    Protection-space label used in the WWW-Authenticate challenge (RFC 6750). Typically the Keycloak realm name. Defaults to "api" when omitted.

    host?: string

    Hostname the server will bind to.

    pkg?: Record<string, unknown>

    Package metadata (e.g. contents of package.json).

    port?: number

    Port the server will listen on.