Enable gin release mode outside dev
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 3m53s
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 3m53s
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -28,6 +28,10 @@ func main() {
|
||||
}
|
||||
gin.DefaultWriter = io.MultiWriter(os.Stdout, logFile)
|
||||
|
||||
if os.Getenv("DEV_MODE") != "true" {
|
||||
gin.SetMode(gin.ReleaseMode)
|
||||
}
|
||||
|
||||
r := gin.Default()
|
||||
|
||||
err = r.SetTrustedProxies([]string{"172.28.0.0/16"})
|
||||
|
||||
Reference in New Issue
Block a user