feat: PROXY_HEADER

This commit is contained in:
Lewis Crichton
2023-09-06 13:19:42 +01:00
parent e89f23c33c
commit 654a23e2f6
2 changed files with 6 additions and 1 deletions
+2
View File
@@ -15,3 +15,5 @@ SIZE_LIMIT=33554432
ALLOWED_USERS=
PROMETHEUS=false
PROXY_HEADER=
+4 -1
View File
@@ -108,7 +108,10 @@ func main() {
}
}
app := fiber.New()
app := fiber.New(fiber.Config{
ProxyHeader: os.Getenv("PROXY_HEADER"),
})
g.RDB = redis.NewClient(&redis.Options{
Addr: g.REDIS_URI,
})