Sergey A. Osokin
May 30, 2022 10:52AM
Hi Husain,

On Mon, May 30, 2022 at 07:30:10AM +0000, 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 '$ref';
>
> Below is lua code :
>
> local function main()
> local host="https://example.com"
> return host
> end
>
> return main()

The nginx-devel@ mailing list is to discuss nginx development. If
don't want to suggest a patch, but rather need help with
understanding what goes wrong in your nginx configuration and how
to configure nginx properly, please use the nginx@ mailing list
instead.

Also, the question is related to the third-party module,
developing by another team. So, I'd recommend to address the
question to the corresponding mailing list.

Thank you.

--
Sergey A. Osokin
_______________________________________________
nginx-devel mailing list -- nginx-devel@nginx.org
To unsubscribe send an email to nginx-devel-leave@nginx.org
Subject Author Views Posted

Pass Lua variable in proxy pass directive

husaindalroti 293 May 30, 2022 03:32AM

Re: Pass Lua variable in proxy pass directive

Sergey A. Osokin 143 May 30, 2022 10:52AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 136
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready