feat: 增加nginx性能调整页面

This commit is contained in:
zhengkunwang223
2022-11-24 10:28:39 +08:00
committed by zhengkunwang223
parent c111290609
commit ddf6555250
22 changed files with 482 additions and 82 deletions

View File

@@ -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
}