reduce memory usage by handling http/2 coalescing via a lua script (#1779)

* add support for proxy protocol on HTTP listener (#1777)

* add support for proxy protocol on HTTP listener

* rename option, add doc

* reduce memory usage by handling http/2 coalescing via a lua script

* move script to file

* use wellknown

* fix integration test
This commit is contained in:
Caleb Doxsey 2021-01-19 08:45:28 -07:00 committed by GitHub
parent 09747aa3ba
commit b2ceaa9e91
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 156 additions and 77 deletions

View file

@ -16,6 +16,7 @@ var luascripts struct {
ExtAuthzSetCookie string
CleanUpstream string
RemoveImpersonateHeaders string
FixMisdirected string
}
func init() {
@ -28,6 +29,7 @@ func init() {
"/clean-upstream.lua": &luascripts.CleanUpstream,
"/ext-authz-set-cookie.lua": &luascripts.ExtAuthzSetCookie,
"/remove-impersonate-headers.lua": &luascripts.RemoveImpersonateHeaders,
"/fix-misdirected.lua": &luascripts.FixMisdirected,
}
err = fs.Walk(hfs, "/", func(p string, fi os.FileInfo, err error) error {