LogtoResource

Handle
📦 CommunityToolkit.Aspire.Hosting.Logto v13.6.1
interface LogtoResource
extends IComputeResource,
IExpressionValue,
IManifestExpressionProvider,
IResource,
IResourceWithArgs,
IResourceWithConnectionString,
IResourceWithEndpoints,
IResourceWithEnvironment,
IResourceWithProbes,
IResourceWithWaitSupport,
IValueProvider,
IValueWithReferences {
readonly connectionStringExpression: ReferenceExpression;
readonly host: EndpointReferenceExpression;
readonly port: EndpointReferenceExpression;
readonly primaryEndpoint: EndpointReference;
readonly uriExpression: ReferenceExpression;
withAdminEndpoint(url: string): LogtoResource;
withDatabase(
postgres: PostgresServerResource,
databaseName?: string): LogtoResource;
withDatabaseSeeding(): LogtoResource;
withDataBindMount(source: string): LogtoResource;
withDataVolume(name?: string): LogtoResource;
withDeprecationTracing(): LogtoResource;
withDisableAdminConsole(disable: boolean): LogtoResource;
withNodeEnv(env: string): LogtoResource;
withRedis(redis: RedisResource): LogtoResource;
withResourcePort(
port?: number,
adminPort?: number): LogtoResource;
withSecretVault(secretVaultKek: string): LogtoResource;
withSensitiveUsername(sensitiveUsername: boolean): LogtoResource;
withTrustProxyHeader(trustProxyHeader: boolean): LogtoResource;
}

Properties

propertyconnectionStringExpressionReferenceExpressionget
Gets the ConnectionStringExpression property
propertyhostEndpointReferenceExpressionget
Gets the Host property
propertyportEndpointReferenceExpressionget
Gets the Port property
propertyprimaryEndpointEndpointReferenceget
Gets the PrimaryEndpoint property
propertyuriExpressionReferenceExpressionget
Gets the connection URI expression for the Logto container resource.

Methods

methodwithAdminEndpointbuilder
Configures the specified Logto resource to include an administrative endpoint with the given URL.
withAdminEndpoint(url: string): LogtoResource
urlstringThe URL of the administrative endpoint to be used for the Logto resource.
LogtoResource
methodwithDatabasebuilder
Configures the Logto resource to connect to the specified PostgreSQL database.
withDatabase(
postgres: PostgresServerResource,
databaseName?: string): LogtoResource
postgresPostgresServerResourceThe resource builder for the PostgreSQL server to connect to.
databaseNamestringoptional= logto_dbThe PostgreSQL database name Logto should use.
LogtoResource
methodwithDatabaseSeedingbuilder
Starts Logto by running the database seed command before the application process.
withDatabaseSeeding(): LogtoResource
LogtoResource
methodwithDataBindMountbuilder
Configures the Logto resource to use a data bind mount with the specified source directory.
withDataBindMount(source: string): LogtoResource
sourcestringThe host directory to be mounted as the data volume.
LogtoResource
methodwithDataVolumebuilder
Configures the Logto resource with a data volume, allowing persistent storage.
withDataVolume(name?: string): LogtoResource
namestringoptionalThe optional name of the data volume. If not provided, a default name is generated.
LogtoResource
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
LogtoResource
Configures the Logto resource to disable the Admin Console port.
withDisableAdminConsole(disable: boolean): LogtoResource
disablebooleanA value indicating whether to disable the Admin Console port.
LogtoResource
methodwithNodeEnvbuilder
Configures the Logto resource to use the specified Node.js environment value by setting the corresponding environment variable.
withNodeEnv(env: string): LogtoResource
envstringThe value of the Node.js environment variable to set, typically "development", "production", or "test".
LogtoResource
methodwithRedisbuilder
Configures the Logto resource to use a specified Redis resource for caching or other functionality.
withRedis(redis: RedisResource): LogtoResource
redisRedisResourceThe resource builder for the Redis resource to be used by the Logto resource.
LogtoResource
methodwithResourcePortbuilder
Configures HTTP endpoints for the given Logto resource builder with specified port settings.
withResourcePort(
port?: number,
adminPort?: number): LogtoResource
portnumberoptionalThe host port to be configured for the primary endpoint. If `null`, Aspire will assign a random host port.
adminPortnumberoptionalThe host port to be configured for the administrative endpoint. If `null`, Aspire will assign a random host port.
LogtoResource
methodwithSecretVaultbuilder
Configures the Logto resource to use a secret vault with the specified key encryption key (KEK).
withSecretVault(secretVaultKek: string): LogtoResource
secretVaultKekstringThe base64-encoded key encryption key (KEK) for the secret vault.
LogtoResource
Specifies whether the username is case-sensitive.
withSensitiveUsername(sensitiveUsername: boolean): LogtoResource
sensitiveUsernamebooleanA value indicating whether usernames should be treated as case-sensitive.
LogtoResource
Configures the Logto resource to enable or disable the trust proxy header behavior.
withTrustProxyHeader(trustProxyHeader: boolean): LogtoResource
trustProxyHeaderbooleanA value indicating whether to trust the proxy header.
LogtoResource