feat: support redis rate limiting
This commit is contained in:
@@ -45,6 +45,13 @@ Port = 8080 # HTTP 监听端口
|
||||
# WindowSeconds = 60 # 窗口大小(秒)
|
||||
# Message = "Too Many Requests"
|
||||
# SkipPaths = ["/healthz", "/readyz"]
|
||||
#
|
||||
# [Http.RateLimit.Redis]
|
||||
# Addrs = ["127.0.0.1:6379"]
|
||||
# Username = ""
|
||||
# Password = ""
|
||||
# DB = 0
|
||||
# Prefix = "rl:"
|
||||
# =========================
|
||||
# Connection Multiplexer (providers/cmux)
|
||||
# 用于同端口同时暴露 HTTP + gRPC:cmux -> 分发到 Http/Grpc
|
||||
|
||||
Reference in New Issue
Block a user