fix health check
This commit is contained in:
@@ -30,7 +30,8 @@ services:
|
|||||||
"wget",
|
"wget",
|
||||||
"--no-verbose",
|
"--no-verbose",
|
||||||
"--tries=1",
|
"--tries=1",
|
||||||
"--spider",
|
"-O",
|
||||||
|
"/dev/null",
|
||||||
"http://localhost:3069/health",
|
"http://localhost:3069/health",
|
||||||
]
|
]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
|
|||||||
2
main.go
2
main.go
@@ -359,9 +359,7 @@ func main() {
|
|||||||
// Protected endpoints
|
// Protected endpoints
|
||||||
auth := r.Group("/", basicAuth())
|
auth := r.Group("/", basicAuth())
|
||||||
{
|
{
|
||||||
auth.GET("/gps", gpsHandler)
|
|
||||||
auth.POST("/gps", gpsHandler)
|
auth.POST("/gps", gpsHandler)
|
||||||
auth.POST("/webhook", gpsHandler)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Printf("GPS Router service starting on port %s", config.Port)
|
log.Printf("GPS Router service starting on port %s", config.Port)
|
||||||
|
|||||||
Reference in New Issue
Block a user