multi-party-computation-controller-api
    Preparing search index...

    Typed wrapper around NestJS ConfigService that exposes individual configuration values as strongly-typed properties.

    Injecting AppConfigService instead of the raw ConfigService prevents scattered config.get('SOME_KEY') calls and avoids runtime type surprises.

    Index
    • Parameters

      • config: ConfigService<
            {
                CLIENT_BEARER_TOKEN: string;
                CRYPTOGRAPHIC_ENGINE_BEARER_TOKEN: string;
                CRYPTOGRAPHIC_ENGINE_HOST: string;
                CRYPTOGRAPHIC_ENGINE_PORT: number;
                LOG_DIRECTORY: string;
                NODE_ENV?: PRODUCTION
                | DEVELOPMENT
                | TEST;
                PORT: number;
                REDIS_HOST: string;
                REDIS_PORT: number;
            },
        >

      Returns AppConfigService

    config: ConfigService<
        {
            CLIENT_BEARER_TOKEN: string;
            CRYPTOGRAPHIC_ENGINE_BEARER_TOKEN: string;
            CRYPTOGRAPHIC_ENGINE_HOST: string;
            CRYPTOGRAPHIC_ENGINE_PORT: number;
            LOG_DIRECTORY: string;
            NODE_ENV?: PRODUCTION
            | DEVELOPMENT
            | TEST;
            PORT: number;
            REDIS_HOST: string;
            REDIS_PORT: number;
        },
    >
    • get clientBearerToken(): string

      Bearer token that client backends must present in the Authorization header.

      Returns string

      The configured client bearer token.

    • get rustEngineBearerToken(): string

      Bearer token injected into gRPC metadata for every call to the Rust engine.

      Returns string

      The engine bearer token.

    • Retrieves a required number config value, throwing if missing.

      Parameters

      • key: string

      Returns number

    • Retrieves a required string config value, throwing if missing.

      Parameters

      • key: string

      Returns string