summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/reverseproxy
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2019-11-15 15:52:19 -0700
committerMatthew Holt <mholt@users.noreply.github.com>2019-11-15 15:52:19 -0700
commit8025ad9107050649b6966277fb22b4c55fb5d501 (patch)
tree62352028b4f5d025f86fba3c30f8ede1f665f19e /modules/caddyhttp/reverseproxy
parent6cdb2392d73992099955f9ce859748dea97cf4df (diff)
cmd: Disable admin endpoint for file-server and reverse-proxy commands
This makes it easier to use multiple instances on the same machine
Diffstat (limited to 'modules/caddyhttp/reverseproxy')
-rw-r--r--modules/caddyhttp/reverseproxy/command.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/caddyhttp/reverseproxy/command.go b/modules/caddyhttp/reverseproxy/command.go
index 0c67428..0ddb8f2 100644
--- a/modules/caddyhttp/reverseproxy/command.go
+++ b/modules/caddyhttp/reverseproxy/command.go
@@ -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),
},