新增黑名单过滤
This commit is contained in:
@@ -90,6 +90,7 @@ type GostServiceConfig struct {
|
|||||||
Listener GostListenerConfig `json:"listener"`
|
Listener GostListenerConfig `json:"listener"`
|
||||||
Recorders []GostRecorderConfig `json:"recorders,omitempty"`
|
Recorders []GostRecorderConfig `json:"recorders,omitempty"`
|
||||||
Limiter string `json:"limiter,omitempty"`
|
Limiter string `json:"limiter,omitempty"`
|
||||||
|
Bypasses []string `json:"bypasses,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type GostHandlerConfig struct {
|
type GostHandlerConfig struct {
|
||||||
|
|||||||
@@ -54,7 +54,8 @@ func (s *channelGostProvider) prepareCreate(ctx *channelCreateContext) (*channel
|
|||||||
Recorders: []g.GostRecorderConfig{
|
Recorders: []g.GostRecorderConfig{
|
||||||
{Name: "record-http-otel", Record: "recorder.service.handler"},
|
{Name: "record-http-otel", Record: "recorder.service.handler"},
|
||||||
},
|
},
|
||||||
Limiter: "limiter-8m",
|
Limiter: "limiter-8m",
|
||||||
|
Bypasses: []string{"china", "deny"},
|
||||||
}
|
}
|
||||||
|
|
||||||
if ctx.AuthWhitelist {
|
if ctx.AuthWhitelist {
|
||||||
|
|||||||
Reference in New Issue
Block a user