MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / AppendDirectives

Method AppendDirectives

agent/utils/nginx/components/block.go:41–43  ·  view source on GitHub ↗
(directives ...IDirective)

Source from the content-addressed store, hash-verified

39}
40
41func (b *Block) AppendDirectives(directives ...IDirective) {
42 b.Directives = append(b.Directives, directives...)
43}
44
45func (b *Block) UpdateDirective(key string, params []string) {
46 if key == "" || len(params) == 0 {

Callers 8

UpdateRootProxyForAiMethod · 0.95
UpdateRootLocationMethod · 0.95
UpdateRootProxyMethod · 0.95
UpdatePHPProxyMethod · 0.95
AddHTTP2HTTPSMethod · 0.95
AddCorsOptionMethod · 0.95
AddCorsOptionMethod · 0.95
UpdateAntiLeechMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected