Browse Source
cmd: Disable admin endpoint for file-server and reverse-proxy commands
This makes it easier to use multiple instances on the same machine
master
Matthew Holt
6 years ago
No known key found for this signature in database
GPG Key ID: 2A349DD577D586A5
2 changed files with
2 additions and
0 deletions
-
modules/caddyhttp/fileserver/command.go
-
modules/caddyhttp/reverseproxy/command.go
|
|
@ -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), |
|
|
|
}, |
|
|
|