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

    Constructors

    • 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

    Properties

    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;
        },
    >

    Accessors

    • 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.

    Methods