fix: refresh entitlements after creating first user (#12285)

This commit is contained in:
Marcin Tojek
2024-02-23 17:48:24 +01:00
committed by GitHub
parent 2cb9bfd517
commit 90db6683c4
7 changed files with 64 additions and 15 deletions

View File

@ -125,6 +125,8 @@ type Options struct {
ExternalAuthConfigs []*externalauth.Config
RealIPConfig *httpmw.RealIPConfig
TrialGenerator func(ctx context.Context, body codersdk.LicensorTrialRequest) error
// RefreshEntitlements is used to set correct entitlements after creating first user and generating trial license.
RefreshEntitlements func(ctx context.Context) error
// TLSCertificates is used to mesh DERP servers securely.
TLSCertificates []tls.Certificate
TailnetCoordinator tailnet.Coordinator