Skip to content

Instantly share code, notes, and snippets.

View borfig's full-sized avatar

Boris Figovsky borfig

View GitHub Profile
@borfig
borfig / header_filter_by_lua_file.lua
Created March 4, 2022 20:27
Reverse Proxy helper for HTTP Redirect Binding
-- Installation instructions
-- 1. Install OpenResty (https://openresty.org/)
-- 2. Use opm to install dependencies:
-- opm get hamishforbes/lua-ffi-zlib && opm get liyo/neturl
-- 3. Change the configuration below to suit your needs
-- 4. Reference this file using header_filter_by_lua_file directive,
-- in the same block as the relevant proxy_pass directive.
-- Configuration
-- The following 2 locals are editable