summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/reverseproxy
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2020-02-27 11:08:56 -0700
committerMatthew Holt <mholt@users.noreply.github.com>2020-02-27 11:08:56 -0700
commite2d41ee7619bf88d9cd01ac92911fda8625bd02d (patch)
tree47baafa03dee8c929f2d9f9727ee93a35b3dbcb7 /modules/caddyhttp/reverseproxy
parent86b785e51cccd5df18611c380962cbd4faf38af5 (diff)
Revert "reverse_proxy: Add 'transparent' Caddyfile subdirective (closes #2873)"
This reverts commit 86b785e51cccd5df18611c380962cbd4faf38af5.
Diffstat (limited to 'modules/caddyhttp/reverseproxy')
-rw-r--r--modules/caddyhttp/reverseproxy/caddyfile.go15
1 files changed, 0 insertions, 15 deletions
diff --git a/modules/caddyhttp/reverseproxy/caddyfile.go b/modules/caddyhttp/reverseproxy/caddyfile.go
index a2b1898..d08e7f1 100644
--- a/modules/caddyhttp/reverseproxy/caddyfile.go
+++ b/modules/caddyhttp/reverseproxy/caddyfile.go
@@ -411,21 +411,6 @@ func (h *Handler) UnmarshalCaddyfile(d *caddyfile.Dispenser) error {
}
h.TransportRaw = caddyconfig.JSONModuleObject(rt, "protocol", name, nil)
- case "transparent":
- if d.NextArg() {
- return d.ArgErr()
- }
- if h.Headers == nil {
- h.Headers = new(headers.Handler)
- }
- if h.Headers.Request == nil {
- h.Headers.Request = new(headers.HeaderOps)
- }
- // The X-Forwarded-For header is always appended to by default, directly in the reverse proxy code
- headers.CaddyfileHeaderOp(h.Headers.Request, "Host", "{http.request.hostport}", "")
- headers.CaddyfileHeaderOp(h.Headers.Request, "X-Real-Ip", "{http.request.remote}", "")
- headers.CaddyfileHeaderOp(h.Headers.Request, "X-Forwarded-Proto", "{http.request.scheme}", "")
-
default:
return d.Errf("unrecognized subdirective %s", d.Val())
}