Fix proxy config.

This commit is contained in:
2025-05-18 17:24:23 +08:00
parent ca6369e40d
commit 4c0166e364

View File

@@ -15,8 +15,8 @@ func main() {
debugMode := os.Getenv("DEBUG_MODE") != "false" debugMode := os.Getenv("DEBUG_MODE") != "false"
app := fiber.New(fiber.Config{ app := fiber.New(fiber.Config{
BodyLimit: 8 * 1024 * 1024, BodyLimit: 8 * 1024 * 1024,
TrustProxy: true, ProxyHeader: "X-Real-IP",
}) })
app.Use(logger.New(logger.Config{ app.Use(logger.New(logger.Config{