Prevent attach from being served by default via the proxy

This commit is contained in:
Clayton Coleman
2015-10-06 14:26:29 -04:00
parent 363b616908
commit 554ce403e4
4 changed files with 12 additions and 3 deletions

View File

@@ -35,7 +35,7 @@ import (
const (
DefaultHostAcceptRE = "^localhost$,^127\\.0\\.0\\.1$,^\\[::1\\]$"
DefaultPathAcceptRE = "^/.*"
DefaultPathRejectRE = "^/api/.*/exec,^/api/.*/run"
DefaultPathRejectRE = "^/api/.*/exec,^/api/.*/run,^/api/.*/attach"
DefaultMethodRejectRE = "POST,PUT,PATCH"
)