Реализовать lab3 в общем Helm-релизе с Traefik, TLS и HPA

This commit is contained in:
Vladislav Agapov
2026-10-16 11:51:20 +03:00
parent a57cbcf329
commit 9494547300
88 changed files with 1922 additions and 255 deletions
+6 -1
View File
@@ -43,7 +43,7 @@ func CreateApp() fx.Option {
fx.Annotate(databaseStore, fx.As(new(store.Interface))),
fx.Annotate(databaseAccounts, fx.As(new(service.Accounts))),
fx.Annotate(profileCache, fx.As(new(service.ProfileCache))),
fx.Annotate(cursor.New, fx.As(new(service.CursorCodec))),
fx.Annotate(newCursor, fx.As(new(service.CursorCodec))),
fx.Annotate(production.NewCached, fx.As(new(service.Service))),
fx.Annotate(fiberctrl.New, fx.As(new(controller.Controller))),
),
@@ -95,3 +95,8 @@ func databaseAccounts(database *postgres.Store) service.Accounts {
func profileCache(client *valkey.Client) service.ProfileCache {
return client
}
// newCursor binds the shared signing secret at the composition root.
func newCursor(cfg *config.Persistence) (*cursor.Codec, error) {
return cursor.NewShared(cfg.CursorKey)
}