diff --git a/backend/main.go b/backend/main.go index bdc4732..95c7760 100644 --- a/backend/main.go +++ b/backend/main.go @@ -24,6 +24,11 @@ func main() { gin.DefaultWriter = io.MultiWriter(os.Stdout, logFile) r.Use(gin.Logger(), gin.Recovery()) + err = r.SetTrustedProxies([]string{"172.28.0.0/16"}) + if err != nil { + panic(err) + } + dbUser := os.Getenv("POSTGRES_USER") dbPassword := os.Getenv("POSTGRES_PASSWORD") dbName := os.Getenv("POSTGRES_DB")