From c51c72dc85e6cbfb4830d5d24d2e342cf053c51f Mon Sep 17 00:00:00 2001 From: Darius Date: Wed, 24 Sep 2025 00:18:38 +0200 Subject: [PATCH] fix health check --- docker-compose.yml | 3 ++- main.go | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 5c1be8d..fcd8261 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -30,7 +30,8 @@ services: "wget", "--no-verbose", "--tries=1", - "--spider", + "-O", + "/dev/null", "http://localhost:3069/health", ] interval: 30s diff --git a/main.go b/main.go index 3c585e5..2e28c3e 100644 --- a/main.go +++ b/main.go @@ -359,9 +359,7 @@ func main() { // Protected endpoints auth := r.Group("/", basicAuth()) { - auth.GET("/gps", gpsHandler) auth.POST("/gps", gpsHandler) - auth.POST("/webhook", gpsHandler) } log.Printf("GPS Router service starting on port %s", config.Port)