mirror of
https://github.com/bitwarden/server.git
synced 2026-05-31 05:50:43 -05:00
* chore(deps): remove Node.js community plugin * refactor(AppHost): integrate web frontend with Aspire JS hosting * docs(AppHost): update web frontend and Aspire documentation * feat(AppHost): configure Azurite emulator with persistent data volume * docs(AppHost): fix ClientsPath description to reference worktrees section * fix(Apphost): run dotnet format
23 lines
668 B
C#
23 lines
668 B
C#
using Bit.AppHost;
|
|
|
|
var builder = DistributedApplication.CreateBuilder(args);
|
|
var secretsSetup = builder.ConfigureSecrets();
|
|
var db = builder.AddSqlServerDatabaseResource();
|
|
builder.ConfigureMigrations()
|
|
.WaitFor(db)
|
|
.ExcludeFromManifest()
|
|
.WaitForCompletion(secretsSetup);
|
|
var azurite = builder.ConfigureAzurite();
|
|
var mail = builder.ConfigureMailCatcher();
|
|
builder.ConfigureRedis();
|
|
builder.ConfigureIdp();
|
|
var services = builder.ConfigureServices(db, secretsSetup, mail, azurite);
|
|
|
|
builder.ConfigureWebFrontend(services["api"]);
|
|
|
|
#if ENABLE_NGROK_COMMUNITY_PLUGIN
|
|
builder.ConfigureNgrok((services["billing"], "http"));
|
|
#endif
|
|
|
|
builder.Build().Run();
|