Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/1Panel-dev/1Panel
/ UpdateRoot
Method
UpdateRoot
agent/utils/nginx/components/server.go:289–291 ·
view source on GitHub ↗
(path string)
Source
from the content-addressed store, hash-verified
287
}
288
289
func
(s *Server) UpdateRoot(path string) {
290
s.UpdateDirective(
"root"
, []string{path})
291
}
292
293
func
(s *Server) UpdateRootProxyForAi(proxy []string) {
294
newDir := Directive{
Callers
2
configDefaultNginx
Function · 0.80
opWebsite
Function · 0.80
Calls
1
UpdateDirective
Method · 0.95
Tested by
no test coverage detected