Skip to content
DocsTry Aspire
DocsTry

CommunityToolkit.Aspire.Hosting.Logto

📦 CommunityToolkit.Aspire.Hosting.Logtov13.5.0
14Functions
1Types

Types

Functions

methodaddLogtobuilder
Adds a Logto resource to the Aspire distributed application by configuring it with the specified name, associated PostgreSQL server resource, and database name.
addLogto(name: string, postgres: PostgresServerResource, databaseName?: string, port?: number, adminPort?: number): LogtoResource
methodwithAdminEndpointbuilder
Configures the specified Logto resource to include an administrative endpoint with the given URL.
withAdminEndpoint(url: string): LogtoResource
methodwithDatabasebuilder
Configures the Logto resource to connect to the specified PostgreSQL database.
withDatabase(postgres: PostgresServerResource, databaseName?: string): LogtoResource
methodwithDatabaseSeedingbuilder
Starts Logto by running the database seed command before the application process.
withDatabaseSeeding(): LogtoResource
methodwithDataBindMountbuilder
Configures the Logto resource to use a data bind mount with the specified source directory.
withDataBindMount(source: string): LogtoResource
methodwithDataVolumebuilder
Configures the Logto resource with a data volume, allowing persistent storage.
withDataVolume(name?: string): LogtoResource
methodwithDeprecationTracingbuilder
Enables Node.js deprecation tracing for the Logto by setting the NODE_OPTIONS environment variable to '--trace-deprecation'. This allows stack traces to be printed for deprecated API usage.
withDeprecationTracing(): LogtoResource
methodwithDisableAdminConsolebuilder
Configures the Logto resource to disable the Admin Console port.
withDisableAdminConsole(disable: boolean): LogtoResource
methodwithNodeEnvbuilder
Configures the Logto resource to use the specified Node.js environment value by setting the corresponding environment variable.
withNodeEnv(env: string): LogtoResource
methodwithRedisbuilder
Configures the Logto resource to use a specified Redis resource for caching or other functionality.
withRedis(redis: RedisResource): LogtoResource
methodwithResourcePortbuilder
Configures HTTP endpoints for the given Logto resource builder with specified port settings.
withResourcePort(port?: number, adminPort?: number): LogtoResource
methodwithSecretVaultbuilder
Configures the Logto resource to use a secret vault with the specified key encryption key (KEK).
withSecretVault(secretVaultKek: string): LogtoResource
methodwithSensitiveUsernamebuilder
Specifies whether the username is case-sensitive.
withSensitiveUsername(sensitiveUsername: boolean): LogtoResource
methodwithTrustProxyHeaderbuilder
Configures the Logto resource to enable or disable the trust proxy header behavior.
withTrustProxyHeader(trustProxyHeader: boolean): LogtoResource