certmanager updates

This commit is contained in:
Олег Бородин
2024-08-10 10:19:56 +02:00
parent a21b4e2db9
commit 1cdbd2b034
29 changed files with 2341 additions and 1088 deletions

View File

@@ -1,13 +1,14 @@
package server
import (
"context"
"os"
"os/signal"
"syscall"
"os/user"
"path/filepath"
"strconv"
"syscall"
"time"
"certmanager/internal/config"
"certmanager/internal/database"
@@ -92,6 +93,13 @@ func (srv *Server) Build() error {
if err != nil {
return err
}
// Seed accounts
ctx, _ := context.WithTimeout(context.Background(), 1*time.Second)
_, err = srv.lg.SeedAccount(ctx)
if err != nil {
return err
}
// Create whandler
whandlerConfig := &whandler.HandlerConfig{
Logic: srv.lg,