This commit is contained in:
Iru 2025-11-23 20:41:00 +01:00
commit e5a70b9e91
9 changed files with 298 additions and 31 deletions

View file

@ -2,12 +2,13 @@ package main
import (
"log"
"fmt"
"net/http"
)
func main() {
cfg := LoadConfig()
log.Printf("Port: %s", cfg.Port)
log.Printf("Nsec: %s", cfg.NSec)
log.Printf("Npub: %s", cfg.NPub)
log.Printf("Relays: %s", cfg.Relays)
http.HandleFunc("/", cfg.alertReceiver)
log.Printf("Server starting on http://localhost:%d", cfg.Port)
log.Fatal(http.ListenAndServe(fmt.Sprintf(":%d", cfg.Port), nil))
}