Set session limit and add secret to server struct.

This commit is contained in:
2026-04-29 08:14:36 +02:00
parent 089051373e
commit f7ae5a786f
2 changed files with 15 additions and 6 deletions
+5 -1
View File
@@ -58,7 +58,11 @@ func main() {
// Server Init
// ------------------------------------------------------------
server := web.NewServer(store)
jwtSecret := os.Getenv("JWT_SECRET")
if jwtSecret == "" {
log.Fatal("JWT_SECRET environment variable is required")
}
server := web.NewServer(store, jwtSecret)
// We run it in a goroutine so it doesn't block main from reaching the signal listener.
go func() {