mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 04:17:23 +00:00
Fix proxy config.
This commit is contained in:
4
main.go
4
main.go
@@ -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{
|
||||||
|
Reference in New Issue
Block a user