mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-02 00:10:45 +02:00
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:
parent
09747aa3ba
commit
b2ceaa9e91
7 changed files with 156 additions and 77 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue