LogtoBuilderExtensions
Classstaticnet10.0
Provides extension methods for configuring and managing Logto resources within the Aspire hosting application framework.
namespace Aspire.Hosting;
public static class LogtoBuilderExtensions{ // ...}14 members
Methods14
Section titled MethodsAddLogto(IDistributedApplicationBuilder, string, IResourceBuilder<PostgresServerResource>, string, int?, int?) extensionats exportIResourceBuilder<LogtoResource> Adds a Logto resource to the Aspire distributed application by configuring it with the specified name, associated PostgreSQL server resource, and database name.
IResourceBuilder<LogtoResource> Configures the specified Logto resource to include an administrative endpoint with the given URL.
WithDatabase(IResourceBuilder<LogtoResource>, IResourceBuilder<PostgresServerResource>, string) extensionats exportIResourceBuilder<LogtoResource> Configures the Logto resource to connect to the specified PostgreSQL database.
IResourceBuilder<LogtoResource> Starts Logto by running the database seed command before the application process.
IResourceBuilder<LogtoResource> Configures the Logto resource to use a data bind mount with the specified source directory.
IResourceBuilder<LogtoResource> Configures the Logto resource with a data volume, allowing persistent storage.
IResourceBuilder<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.
IResourceBuilder<LogtoResource> Configures the Logto resource to disable the Admin Console port.
IResourceBuilder<LogtoResource> Configures the Logto resource to use the specified Node.js environment value by setting the corresponding environment variable.
IResourceBuilder<LogtoResource> Configures the Logto resource to use a specified Redis resource for caching or other functionality.
IResourceBuilder<LogtoResource> Configures HTTP endpoints for the given Logto resource builder with specified port settings.
IResourceBuilder<LogtoResource> Configures the Logto resource to use a secret vault with the specified key encryption key (KEK).
IResourceBuilder<LogtoResource> Specifies whether the username is case-sensitive.
IResourceBuilder<LogtoResource> Configures the Logto resource to enable or disable the trust proxy header behavior.