This commit is contained in:
cangui 2025-05-06 18:42:30 +02:00
parent 6c8d22bdec
commit cb6a5bbf33

View File

@ -36,12 +36,12 @@ func main() {
// Configuration du serveur // Configuration du serveur
srv := &http.Server{ srv := &http.Server{
Handler: r, Handler: r,
Addr: "0.0.0.0:8080", Addr: "0.0.0.0:3002",
WriteTimeout: 15 * time.Second, WriteTimeout: 15 * time.Second,
ReadTimeout: 15 * time.Second, ReadTimeout: 15 * time.Second,
} }
log.Println("Serveur démarré sur http://localhost:8080") log.Println("Serveur démarré sur http://localhost:3002")
log.Fatal(srv.ListenAndServe()) log.Fatal(srv.ListenAndServe())
} }