config: add rewrite_response_headers option (#1961)

* add lua script to rewrite response headers

* add policy config

* update docs
This commit is contained in:
Caleb Doxsey 2021-03-05 09:40:17 -07:00 committed by GitHub
parent b6ec01f377
commit 7f6107051f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 348 additions and 35 deletions

View file

@ -12,6 +12,7 @@ var luascripts struct {
ExtAuthzSetCookie string
CleanUpstream string
RemoveImpersonateHeaders string
RewriteHeaders string
FixMisdirected string
}
@ -20,6 +21,7 @@ func init() {
"luascripts/clean-upstream.lua": &luascripts.CleanUpstream,
"luascripts/ext-authz-set-cookie.lua": &luascripts.ExtAuthzSetCookie,
"luascripts/remove-impersonate-headers.lua": &luascripts.RemoveImpersonateHeaders,
"luascripts/rewrite-headers.lua": &luascripts.RewriteHeaders,
"luascripts/fix-misdirected.lua": &luascripts.FixMisdirected,
}