Re: nginx: lua modules

2022-08-21 Thread PGNet Dev
Want to use lua pages with nginx . Can you please suggest what are the correct modules ?. also where can i find the same?. LUA support with nginx is third-party -- via OpenResty https://www.nginx.com/resources/wiki/modules/lua/ https://openresty.org/en/ OpenResty is packaged as a standalo

nginx: lua modules

2022-08-21 Thread ramakanth varala
Hi All, Want to use lua pages with nginx . Can you please suggest what are the correct modules ?. also where can i find the same?. Thanks vlrk ___ nginx mailing list -- nginx@nginx.org To unsubscribe send an email to nginx-le...@nginx.org

Using nginx upload module and nginx lua together

2020-02-05 Thread myxingkong
I am using nginx upload module for uplaoding files to server. But I wanted nginx to upload to different paths, not to a path mentioned in upload_store. So I am taking help of nginx-lua module to change the upload_store value on each request like below. location /umtest

Nginx + Lua Anti-DDoS Script Authentication page like Cloudflare Bitmitigate sucuri etc

2019-08-22 Thread c0nw0nk
authentication puzzle for those who have seen Cloudflares I am under attack mode! you know what this will do :) You no longer need the third party services like cloudflare you can now protect your own Nginx servers with it. https://github.com/C0nw0nk/Nginx-Lua-Anti-DDoS I was inspired by Cloudflare

Nginx + LUA, how to read the file and set environment variable?

2019-03-14 Thread pb.rakesh90
Hi Team, I would like to know if a way in Nginx to use Lua module to read a value from a file and set enviornment variable. Any help will be appreciated Posted at Nginx Forum: https://forum.nginx.org/read.php?2,283376,283376#msg-283376 ___ nginx mail

Nginx Lua Caching and removing unwanted Arguements for higher HIT ratio issue

2018-07-11 Thread c0nw0nk
So my issue is mostly directed towards Yichun Zhang (agentzh) if he is still active here. I hope so. My problem is I am trying to increase my Cache HIT ratio by removing arguments from the URL that are fake / unwanted and order the arguments in a alphabetical (same order every time) for a higher

回复:Nginx-lua Dynamic location to upstream

2017-03-23 Thread tjlp
You can refer to the open source Openresty. - 原始邮件 - 发件人:"nembo" 收件人: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 locat

Nginx-lua Dynamic location to upstream

2017-03-23 Thread nembo
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 l

Re: Nginx + lua-nginx, get ssl_session_id

2016-05-26 Thread Dimka
Yes, impossible. In my case, I can use remoteIP/Port, I think its enough to ident. I need it to prevent extra DB queries which done with first request. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,255157,267174#msg-267174 ___ nginx maili

Re: Nginx + lua-nginx, get ssl_session_id

2016-05-26 Thread Aapo Talvensaari
On 26 May 2016 at 14:04, Dimka wrote: > Face the same problem, empty $ssl_session_id variable. > > If ssl_session_ticket off, $ssl_session_id always contain ID. > > How can I identify client connection if no ssl session id available? > I would also know answer for this. It is kinda either: 1. se

Re: Nginx + lua-nginx, get ssl_session_id

2016-05-26 Thread Dimka
Face the same problem, empty $ssl_session_id variable. If ssl_session_ticket off, $ssl_session_id always contain ID. How can I identify client connection if no ssl session id available? I need "session" IDentificator to pass it to backend, which authorize requests by this ID. Posted at Nginx Fo

Re: Nginx LUA

2015-06-14 Thread ryd994
I would suggest using some log parser. You can find some by searching. Those "for Apache" ones would also work. If you know some python or shell script, writing one yourself won't take more than a few minutes. Analyzing access log on the fly just doesn't make much sense. On Sun, Jun 7, 2015 at 10:

Re: Nginx LUA

2015-06-13 Thread Yichun Zhang (agentzh)
Hello! On Sun, Jun 7, 2015 at 10:41 PM, nginxsantos wrote: > Can anyone please help me with a lua configuration which I can embedded into > nginx.conf to send the following sepaately in access log. > > user_agent_os > user_agent_browser > user_agent_version > > At present all these fields are embe

Nginx LUA

2015-06-07 Thread nginxsantos
Can anyone please help me with a lua configuration which I can embedded into nginx.conf to send the following sepaately in access log. user_agent_os user_agent_browser user_agent_version At present all these fields are embedded in http_user_agent and I am writing parser to parse at the receiver e

Nginx lua module + SPDY = no request body

2014-12-11 Thread KiberGus
Hello. I'm experiencing problems with combination of nginx lua module and SPDI. I use "access_by_lua_file" directive to validate requests. In the script request checksumm is validated, so I need to get body of the POST requests. "ngx.var.request_body" variable is used fo

Re: Nginx + lua-nginx, get ssl_session_id

2014-11-28 Thread Yichun Zhang (agentzh)
Hello! On Thu, Nov 27, 2014 at 12:07 AM, VladimirSmirnov wrote: > P.S. As pointed by resty.session author, I've disabled ssl_session_ticket > and now I'm receiving ssl_session_id even with TLS enabled. But I'm not sure > that it's best way to deal with this problem. > No, you don't really want th

Re: Nginx + lua-nginx, get ssl_session_id

2014-11-27 Thread VladimirSmirnov
Thanks! Then what should I use for TLS connections? P.S. As pointed by resty.session author, I've disabled ssl_session_ticket and now I'm receiving ssl_session_id even with TLS enabled. But I'm not sure that it's best way to deal with this problem. P.S.S. I've used this mail-listing, because it'

Re: Nginx + lua-nginx, get ssl_session_id

2014-11-26 Thread Yichun Zhang (agentzh)
Hello! On Wed, Nov 26, 2014 at 8:29 AM, VladimirSmirnov wrote: > For testing purposes I'm using self-signed ssl cert. > > ngx.log(ngx.DEBUG, "session_id=", ngx.var.ssl_session_id) prints "nil" in > the logs. How can I get access to this variable? > It's very likely that your client sends TLS sess

Nginx + lua-nginx, get ssl_session_id

2014-11-26 Thread VladimirSmirnov
Hi! I'm trying to modify one of auth modules for nginx and I need to get content of either ssl_session_id or any other ssl_* variables with uniq client id to identify connection. But I've got a problems with accessing to this variables from lua. For testing purposes I'm using self-signed ssl cert

Re: the http output chain is empty bug (nginx lua module)

2014-06-06 Thread Maxim Dounin
Hello! On Fri, Jun 06, 2014 at 06:13:15AM -0400, itpp2012 wrote: > See http://trac.nginx.org/nginx/ticket/132 Unlikely it's related. -- Maxim Dounin http://nginx.org/ ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/n

Re: the http output chain is empty bug (nginx lua module)

2014-06-06 Thread itpp2012
See http://trac.nginx.org/nginx/ticket/132 Posted at Nginx Forum: http://forum.nginx.org/read.php?2,250689,250692#msg-250692 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

the http output chain is empty bug (nginx lua module)

2014-06-06 Thread kirimedia
nginx >= 1.5.7 nginx-lua-module >= 0.9.8 (possibly older version) CentOS 6 # ./sbin/nginx -V nginx version: nginx/1.5.7 built by gcc 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) configure arguments: --add-module=../lua-nginx-module Config file user nginx; worker_processes 1; error_log /var/log

Re: Nginx, Lua and blocking libraries

2014-01-09 Thread Andre Nathan
Thanks a lot for the detailed answer, Yichun! I'll try to benchmark it, estimate the db size, see if it fits in memory, etc. Cheers, Andre signature.asc Description: OpenPGP digital signature ___ nginx mailing list nginx@nginx.org http://mailman.nginx

Re: Nginx, Lua and blocking libraries

2014-01-09 Thread Yichun Zhang (agentzh)
Hello! On Thu, Jan 9, 2014 at 5:35 AM, Andre Nathan wrote: > However, as known, > using the lua-sqlite3 library directly is not optimal because it would > block the Nginx worker process. > Well, I suggest you benchmark the actual performance and measure the actual blocking effect (We actually hav

Nginx, Lua and blocking libraries

2014-01-09 Thread Andre Nathan
Hello I'm considering the possibility of implementing a project using Nginx and the Lua module. One of the requirements of the project is that the code must use an embedded database such as SQLite. However, as known, using the lua-sqlite3 library directly is not optimal because it would block the

Re: Nginx lua capture_multi fire and forget

2013-10-25 Thread Yichun Zhang (agentzh)
Hello! On Wed, Oct 23, 2013 at 2:46 AM, PieterVI wrote: > Is there a way to have the lua module launch the requests without waiting > for the response? > It should fire the requests and continue directly afterwards and forget > about the response handling. > I could try and modify the lua module,

Nginx lua capture_multi fire and forget

2013-10-23 Thread PieterVI
Hi all, We're currently using the lua capture_multi to send production request to test systems. And sometimes we also kind of 'fork' these request to multiple test systems. But if one of the test systems is slow to respond the lua code waits till it gets all responses. And this is something we ac