Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 14, 05:15 UTC
cmd: Disable admin endpoint for file-server and reverse-proxy commands
This makes it easier to use multiple instances on the same machine
Matthew Holt committed
Nov 15, 2019 at 15:52 UTC
8025ad9107050649b6966277fb22b4c55fb5d501
2 files changed
+2
modules/caddyhttp/fileserver/command.go
+1
@@ -92,6 +92,7 @@ func cmdFileServer(fs caddycmd.Flags) (int, error) {
92
}
93
94
cfg := &caddy.Config{
95
+ Admin: &caddy.AdminConfig{Disabled: true},
96
AppsRaw: map[string]json.RawMessage{
97
"http": caddyconfig.JSON(httpApp, nil),
98
},
modules/caddyhttp/reverseproxy/command.go
+1
@@ -137,6 +137,7 @@ func cmdReverseProxy(fs caddycmd.Flags) (int, error) {
137
}
138
139
cfg := &caddy.Config{
140
+ Admin: &caddy.AdminConfig{Disabled: true},
141
AppsRaw: map[string]json.RawMessage{
142
"http": caddyconfig.JSON(httpApp, nil),
143
},