• Get the basic configuration definitions for a managed service

    Parameters

    • variables: Dict<undefined | string> = process.env

      process.env variables or custom provided values

    • Optional logger: LoggerFn

    Returns {
        dbEnvOwner: (() => string);
        dbEnvOwnerConnectionString: (() => string);
        dbEnvOwnerPassword: (() => string);
        idServiceAuthBaseUrl: (() => string);
        managedServiceAccountClientId: (() => string);
        managedServiceAccountClientSecret: (() => string);
    }

    The following configuration values are included:

    idServiceAuthBaseUrl // e.g. ID_SERVICE_AUTH_BASE_URL=https://id.service.eu.axinom.net
    managedServiceAccountClientId // e.g. MANAGED_SERVICE_CLIENT_ID=dfce7685-b9e1-4ae9-86c2-a5725ad87379
    managedServiceAccountClientSecret // e.g. MANAGED_SERVICE_CLIENT_SECRET=g1ydBSPzxBy5nhzQov9tNc7a
    dbEnvOwner // e.g. DATABASE_ENV_OWNER=my_business_env_owner
    dbEnvOwnerPassword // e.g. DATABASE_ENV_OWNER_PASSWORD=F{Js~f#r=Nq*Zx`Ly3rh|Tt~
    dbEnvOwnerConnectionString // calculated from the above settings
    • dbEnvOwner: (() => string)
        • (): string
        • Returns string

          Example

          DATABASE_ENV_OWNER=my_business_env_owner
          
    • dbEnvOwnerConnectionString: (() => string)
        • (): string
        • calculated from env variables: POSTGRESQL_* and DATABASE_*

          Returns string

    • dbEnvOwnerPassword: (() => string)
        • (): string
        • Returns string

          Example

          DATABASE_ENV_OWNER_PASSWORD=F{Js~f#r=Nq*Zx`Ly3rh|Tt~
          
    • idServiceAuthBaseUrl: (() => string)
        • (): string
        • Returns string

          Example

          ID_SERVICE_AUTH_BASE_URL=https://id.service.eu.axinom.net
          
    • managedServiceAccountClientId: (() => string)
        • (): string
        • Returns string

          Example

          MANAGED_SERVICE_CLIENT_ID=dfce7685-b9e1-4ae9-86c2-a5725ad87379
          
    • managedServiceAccountClientSecret: (() => string)
        • (): string
        • Returns string

          Example

          MANAGED_SERVICE_CLIENT_SECRET=g1ydBSPzxBy5nhzQov9tNc7a
          

Generated using TypeDoc