From 8025ad9107050649b6966277fb22b4c55fb5d501 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Fri, 15 Nov 2019 15:52:19 -0700 Subject: cmd: Disable admin endpoint for file-server and reverse-proxy commands This makes it easier to use multiple instances on the same machine --- modules/caddyhttp/fileserver/command.go | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/caddyhttp/fileserver/command.go') diff --git a/modules/caddyhttp/fileserver/command.go b/modules/caddyhttp/fileserver/command.go index ac580b6..17274da 100644 --- a/modules/caddyhttp/fileserver/command.go +++ b/modules/caddyhttp/fileserver/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), }, -- cgit v1.2.3