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

Method UpdateServerName

agent/utils/nginx/components/server.go:285–287  ·  view source on GitHub ↗
(names []string)

Source from the content-addressed store, hash-verified

283}
284
285func (s *Server) UpdateServerName(names []string) {
286 s.UpdateDirective("server_name", names)
287}
288
289func (s *Server) UpdateRoot(path string) {
290 s.UpdateDirective("root", []string{path})

Callers 4

DeleteServerNameMethod · 0.95
AddServerNameMethod · 0.95
configDefaultNginxFunction · 0.80
addListenAndServerNameFunction · 0.80

Calls 1

UpdateDirectiveMethod · 0.95

Tested by

no test coverage detected