Try to fix rate limits when reverse-proxied.
Signed-off-by: Odyssey <odyssey346@disroot.org>
このコミットが含まれているのは:
コミット
1e382e3cfd
4
main.go
4
main.go
|
@ -38,6 +38,10 @@ func main() {
|
|||
Views: engine,
|
||||
Prefork: true,
|
||||
AppName: "GotHub",
|
||||
// fucked up way to fix rate limits
|
||||
EnableTrustedProxyCheck: true,
|
||||
TrustedProxies: []string{"0.0.0.0/0"},
|
||||
ProxyHeader: fiber.HeaderXForwardedFor,
|
||||
ErrorHandler: func(ctx *fiber.Ctx, err error) error {
|
||||
code := fiber.StatusInternalServerError
|
||||
|
||||
|
|
読み込み中…
新しいイシューから参照