Welcome! Log In Create A New Profile

Advanced

回复:Nginx-lua Dynamic location to upstream

Anonymous User
March 23, 2017 09:08PM
You can refer to the open source Openresty.
----- 原始邮件 -----
发件人:"nembo" <nginx-forum@forum.nginx.org>
收件人:nginx@nginx.org
主题:Nginx-lua Dynamic location to upstream
日期:2017年03月23日 18点24分


Hi there,
I've Just started to play with Lua (with nginx-plus) and this is what I'd
like to achieve:
I expose a location and a lua script Will inspect http args.Once It takes
the args,It Will call an external api searching for a specific content and
It Will writes the returned json values on some lua variables.
Based on the returned values,Nginx Will proxy_pass to the right upstream.
Does Nginx/luajit cache all json values/pages based on different calls?I
don't really want to call an external api for every single location
request...
Thanks a lot.
Posted at Nginx Forum: https://forum.nginx.org/read.php?2,273136,273136#msg-273136
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

回复:Nginx-lua Dynamic location to upstream

Anonymous User March 23, 2017 09:08PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 288
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