testing: web-based server setup with automatic restart

- Add React setup form matching our design system
- Implement automatic server restart after configuration
- Add WelcomeChecker component for proper routing
- Update API to handle setup endpoints and restart logic
- Improve setup workflow with proper loading states and redirects

Testing complete setup workflow from welcome mode to login.
This commit is contained in:
Fimeg
2025-10-29 13:37:02 -04:00
parent 73fb8d49b0
commit 1f520fd9e6
7 changed files with 500 additions and 22 deletions

View File

@@ -142,7 +142,6 @@ func main() {
registrationTokenHandler := handlers.NewRegistrationTokenHandler(registrationTokenQueries, agentQueries, cfg)
rateLimitHandler := handlers.NewRateLimitHandler(rateLimiter)
downloadHandler := handlers.NewDownloadHandler(filepath.Join(".", "redflag-agent"))
setupHandler := handlers.NewSetupHandler("/app/config")
// Setup router
router := gin.Default()