changes required to convert to Echo v5 #7

Merged
amy merged 5 commits from echo5-update into main 2026-05-03 14:59:50 -06:00
Showing only changes of commit d309b90953 - Show all commits
+11
View File
@@ -263,11 +263,22 @@ func main() {
database.AmStoreAudit(database.AmNewAudit(database.AuditShutdown, 0, myIP.String()))
}()
// Set up the start configuration.
sconf := echo.StartConfig{
Address: config.GlobalComputedConfig.Listen,
HideBanner: true,
HidePort: true,
GracefulTimeout: 10 * time.Second,
OnShutdownError: func(err error) {
log.Fatalf("error in shutting down the server: %v", err)
},
BeforeServeFunc: func(s *http.Server) error {
s.ReadTimeout = 30 * time.Second
s.WriteTimeout = 30 * time.Second
s.IdleTimeout = 120 * time.Second
s.ReadHeaderTimeout = 2 * time.Second
return nil
},
}
stime := time.Since(SystemStartTime)