You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/CommunityToolkit.Aspire.Hosting.Zitadel/README.md
+33-2Lines changed: 33 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,15 +20,46 @@ Then, in the _Program.cs_ file of `AppHost`, define a Zitadel resource, then cal
20
20
builder.AddZitadel("zitadel");
21
21
```
22
22
23
-
Zitadel *requires* a Postgres database, you can add one with `AddDatabase`:
23
+
Zitadel *requires* a Postgres database, you can add one with `WithDatabase`:
24
24
```csharp
25
25
vardatabase=builder.AddPostgres("postgres");
26
26
27
27
builder.AddZitadel("zitadel")
28
-
.AddDatabase(database);
28
+
.WithDatabase(database);
29
29
```
30
30
You can also pass in a database rather than server (`AddPostgres().AddDatabase()`).
31
31
32
+
### Configuring the External Domain
33
+
34
+
By default, Zitadel uses `{name}.dev.localhost` as the external domain, which works well for local development. For production deployments or custom scenarios, you can configure a custom external domain:
Copy file name to clipboardExpand all lines: src/CommunityToolkit.Aspire.Hosting.Zitadel/ZitadelHostingExtensions.cs
+23-2Lines changed: 23 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -17,18 +17,23 @@ public static class ZitadelHostingExtensions
17
17
/// <param name="username">An optional parameter to set a username for the admin account, if <c>null</c> will auto generate one.</param>
18
18
/// <param name="password">An optional parameter to set a password for the admin account, if <c>null</c> will auto generate one.</param>
19
19
/// <param name="masterKey">An optional parameter to set the masterkey, if <c>null</c> will auto generate one.</param>
20
+
/// <param name="externalDomain">The external domain for Zitadel. Defaults to <c>{name}.dev.localhost</c> which works for local development. For production deployments, specify the actual domain (e.g., "auth.example.com").</param>
0 commit comments