mirror of https://github.com/caddyserver/caddy.git
cmd: Disable admin endpoint for file-server and reverse-proxy commands
This makes it easier to use multiple instances on the same machine
This commit is contained in:
parent
6cdb2392d7
commit
8025ad9107
|
@ -92,6 +92,7 @@ func cmdFileServer(fs caddycmd.Flags) (int, error) {
|
|||
}
|
||||
|
||||
cfg := &caddy.Config{
|
||||
Admin: &caddy.AdminConfig{Disabled: true},
|
||||
AppsRaw: map[string]json.RawMessage{
|
||||
"http": caddyconfig.JSON(httpApp, nil),
|
||||
},
|
||||
|
|
|
@ -137,6 +137,7 @@ func cmdReverseProxy(fs caddycmd.Flags) (int, error) {
|
|||
}
|
||||
|
||||
cfg := &caddy.Config{
|
||||
Admin: &caddy.AdminConfig{Disabled: true},
|
||||
AppsRaw: map[string]json.RawMessage{
|
||||
"http": caddyconfig.JSON(httpApp, nil),
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue