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

    Function defaultFastifyOptions

    • Returns base FastifyServerOptions used as defaults in launcher.

      Uses getConsoleFastifyLogger as loggerInstance so that all Fastify internal logs are routed through LogTape under logger.category. Built-in per-request logging is disabled in favor of the preHandler and onResponse hooks, which emit structured access log lines.

      Generates request IDs via crypto.randomUUID(). Proxy trust is disabled by default (trustProxy: false) so X-Forwarded-For cannot be spoofed when the server is not behind a trusted proxy; enable it (a boolean, hop count, or IP/CIDR list) only when running behind one. Callers may override any field by spreading their own options on top.

      Parameters

      • logger: Logger

        The application LogTape logger; its category is used as the base category for Fastify's own logger.

      Returns FastifyServerOptions

      Base FastifyServerOptions to spread into the Fastify(...) call.