mirror of
https://github.com/usememos/memos.git
synced 2025-02-01 01:58:14 +08:00
fix: index page failed with 429 (#2363)
This commit is contained in:
parent
3ff4d19782
commit
c00dac1bbf
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ func NewServer(ctx context.Context, profile *profile.Profile, store *store.Store
|
||||||
e.Use(middleware.RateLimiterWithConfig(middleware.RateLimiterConfig{
|
e.Use(middleware.RateLimiterWithConfig(middleware.RateLimiterConfig{
|
||||||
Skipper: grpcRequestSkipper,
|
Skipper: grpcRequestSkipper,
|
||||||
Store: middleware.NewRateLimiterMemoryStoreWithConfig(
|
Store: middleware.NewRateLimiterMemoryStoreWithConfig(
|
||||||
middleware.RateLimiterMemoryStoreConfig{Rate: 30, Burst: 60, ExpiresIn: 3 * time.Minute},
|
middleware.RateLimiterMemoryStoreConfig{Rate: 30, Burst: 100, ExpiresIn: 3 * time.Minute},
|
||||||
),
|
),
|
||||||
IdentifierExtractor: func(ctx echo.Context) (string, error) {
|
IdentifierExtractor: func(ctx echo.Context) (string, error) {
|
||||||
id := ctx.RealIP()
|
id := ctx.RealIP()
|
||||||
|
|
Loading…
Reference in a new issue