feat: 增加nginx性能调整页面
This commit is contained in:

committed by
zhengkunwang223

parent
c111290609
commit
ddf6555250
@@ -26,3 +26,13 @@ func (c *Config) FindServers() []*Server {
|
||||
}
|
||||
return servers
|
||||
}
|
||||
|
||||
func (c *Config) FindHttp() *Http {
|
||||
var http *Http
|
||||
directives := c.Block.FindDirectives("http")
|
||||
if len(directives) > 0 {
|
||||
http = directives[0].(*Http)
|
||||
}
|
||||
|
||||
return http
|
||||
}
|
||||
|
Reference in New Issue
Block a user