Re: Pass Lua variable in proxy pass directive

2022-05-30 Thread Sergey A. Osokin
Hi Husain, On Mon, May 30, 2022 at 07:30:10AM +, Dalroti, Husain wrote: > Hi Team, > > Is it possible to pass lua variable in proxy pass directive which we define > using set_by_lua_file directive ? > > Example : > set_by_lua_file $ref test.lua; > proxy_pass '

Pass Lua variable in proxy pass directive

2022-05-30 Thread Dalroti, Husain
Hi Team, Is it possible to pass lua variable in proxy pass directive which we define using set_by_lua_file directive ? Example : set_by_lua_file $ref test.lua; proxy_pass '$ref'; Below is lua code : local function main() local host="https://example.com"; return h