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

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

Re: Nginx + Lua вернуть JSON, как?

2019-06-25 Thread Vadim A. Misbakh-Soloviov
как именно пробовали и что именно не получается? ___ nginx-ru mailing list nginx-ru@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-ru

Nginx + Lua вернуть JSON, как?

2019-06-20 Thread darksmoke
Добрый день Подскажите пожалуйста, как вернуть JSON в response? Есть сам JSON {"1_sign_level":"0200200","2_sign_level":"0200300"} Пробовал ngx.say и cjson.encodeНо ничего не получается. Помогите, пожалуйста, с кодом. Posted at Nginx Forum:

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

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-fo...@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 a

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

Re: nginx + lua broken

2016-06-10 Thread Yuriy Medvedev
И странно что такой путь до модуля /usr/ports/www/nginx/work/lua-nginx-module-0.10.5 У меня на 10 freebsd модули живут в /usr/local/libexec/nginx/, nginx установлен из портов 10 июня 2016 г., 9:32 пользователь Vadim A. Misbakh-Soloviov написал: > В письме от четверг, 9 июня

Re: nginx + lua broken

2016-06-10 Thread Станислав
Спасибо! Я - динозавр как-то пропустил эту тему с динамическими модулями. Работает :) В письме от четверг, 9 июня 2016 г. 22:31:53 TSK пользователь Станислав написал: --add-dynamic-module=/usr/ports/www/nginx/work/lua-nginx-module-0.10.5 Потому что динамические модули нужно ещё и

Re: nginx + lua broken

2016-06-10 Thread Станислав
Такое есть: # ls -la /usr/local/libexec/nginx/ngx_http_lua_module.so -r-xr-xr-x 1 root wheel 336032 10 июн 07:59 /usr/local/libexec/nginx/ngx_http_lua_module.so # pkg info -l luajit-2.0.4 luajit-2.0.4: /usr/local/bin/luajit /usr/local/bin/luajit-2.0.4

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

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

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

nginx + lua

2015-08-25 Thread Владимир
  Добрый день! Заметил странное. Использую nginx-1.8 и lua5.1 На уровне http, указан access_by_lua_file, некоторый обработчик, который помимо прочего ведет статистику запросов. Однако, если в конфигурации какого-либо вирт-хоста, указан локейшен с кодом возврата, то этот запрос идет мимо

Re: NGINX Lua Как спрятать исходный код?

2015-07-09 Thread Илья Шипицин
доработать чужой код - сложнее, чем написать собственный. если кто-то заказывает платную доработку по всей вероятности он не готов сам программировать. 3 июля 2015 г., 17:00 пользователь xpwy nginx-fo...@nginx.us написал: Daniel Podolsky Wrote:

Re: NGINX Lua Как спрятать исходный код?

2015-07-03 Thread Vadim A. Misbakh-Soloviov
В таком случае, есть ли вообще грамотный способ распространения платных lua модулей? Есть. Лицензия GPL (точнее, в случае всего, что связано с вебсервером — AGPL) :) Ну и вообще, лучше никогда не пытаться использовать копирастическую модель скрытия того, что делает модуль от того, кто это

Re: NGINX Lua Как спрятать исходный код?

2015-07-03 Thread xpwy
mva Wrote: --- В таком случае, есть ли вообще грамотный способ распространения платных lua модулей? Есть. Лицензия GPL (точнее, в случае всего, что связано с вебсервером — AGPL) :) Ну и вообще, лучше никогда не пытаться использовать

NGINX Lua Как спрятать исходный код?

2015-07-03 Thread xpwy
Всем привет. Есть ли возможность спрятать исходный код для lua скриптов? Posted at Nginx Forum: http://forum.nginx.org/read.php?21,260024,260024#msg-260024 ___ nginx-ru mailing list nginx-ru@nginx.org

Re: NGINX Lua Как спрятать исходный код?

2015-07-03 Thread Vadim A. Misbakh-Soloviov
Спрятать от чего? В письме от Пт, 3 июля 2015 03:33:22 пользователь xpwy написал: Всем привет. Есть ли возможность спрятать исходный код для lua скриптов? Posted at Nginx Forum: http://forum.nginx.org/read.php?21,260024,260024#msg-260024 ___

Re: NGINX Lua Как спрятать исходный код?

2015-07-03 Thread xpwy
От чужих глаз конечно же :) Я пробовал скомпилировать *.lua скрипт в *.so библиотеку и скормить ее nginx. Но ничего не получилось ( Поэтому интересуюся, есть ли какие-нибудь способы. Posted at Nginx Forum: http://forum.nginx.org/read.php?21,260024,260026#msg-260026

Re: NGINX Lua Как спрятать исходный код?

2015-07-03 Thread xpwy
luajit -b in.lua out.so Прокатило, nginx работает как надо. Даже require работает из байткода. Сейчас поизучал вопрос дtкомпеляции. Точно не уверен, но, как я понял, исходники вернуть из байт кода очень сложно (чтобы один в один было, как это делается с C# например). Это действительно так?

Re: NGINX Lua Как спрятать исходный код?

2015-07-03 Thread Konstantin Tokarev
03.07.2015, 10:51, xpwy nginx-fo...@nginx.us: От чужих глаз конечно же :) Я пробовал скомпилировать *.lua скрипт в *.so библиотеку и скормить ее nginx. Но ничего не получилось ( Поэтому интересуюся, есть ли какие-нибудь способы. Можно скомпилировать скрипт в байткод с помощью luac и

Re: NGINX Lua Как спрятать исходный код?

2015-07-03 Thread Валентин Бартенев
On Friday 03 July 2015 17:08:19 Vadim A. Misbakh-Soloviov wrote: В письме от Пт, 3 июля 2015 03:51:16 пользователь xpwy написал: От чужих глаз конечно же :) Я пробовал скомпилировать *.lua скрипт в *.so библиотеку и скормить ее nginx. Но ничего не получилось ( Интересно, как вы это

Re: NGINX Lua Как спрятать исходный код?

2015-07-03 Thread Konstantin Tokarev
03.07.2015, 12:48, xpwy nginx-fo...@nginx.us: luajit -b in.lua out.so Прокатило, nginx работает как надо. Даже require работает из байткода. Сейчас поизучал вопрос дtкомпеляции. Точно не уверен, но, как я понял, исходники вернуть из байт кода очень сложно (чтобы один в один было, как это

Re: NGINX Lua Как спрятать исходный код?

2015-07-03 Thread Vadim A. Misbakh-Soloviov
В письме от Пт, 3 июля 2015 03:51:16 пользователь xpwy написал: От чужих глаз конечно же :) Я пробовал скомпилировать *.lua скрипт в *.so библиотеку и скормить ее nginx. Но ничего не получилось ( Интересно, как вы это пробовали (приведённый ниже пример с байткодом записанном в .so — не

Re: NGINX Lua Как спрятать исходный код?

2015-07-03 Thread xpwy
Да, вы правы :) Я интересовался с целью распространения платных lua модулей. Так как благодаря lua с nginx можно вытворять что угодно (практически). Posted at Nginx Forum: http://forum.nginx.org/read.php?21,260024,260036#msg-260036 ___ nginx-ru

Re: NGINX Lua Как спрятать исходный код?

2015-07-03 Thread Daniel Podolsky
2015-07-03 14:30 GMT+03:00 xpwy nginx-fo...@nginx.us: Я интересовался с целью распространения платных lua модулей. Обфускация нужна только если вы туда защиту от несанкционированного использования поместили. И тут lua byte code вам не поможет - то, что выдает дизассемблер вполне пригодно для

Re: NGINX Lua Как спрятать исходный код?

2015-07-03 Thread xpwy
Daniel Podolsky Wrote: --- 2015-07-03 14:30 GMT+03:00 xpwy nginx-fo...@nginx.us: Я интересовался с целью распространения платных lua модулей. Обфускация нужна только если вы туда защиту от несанкционированного использования поместили. И тут

Re: NGINX Lua Как спрятать исходный код?

2015-07-03 Thread Daniel Podolsky
В таком случае, есть ли вообще грамотный способ распространения платных lua модулей? я не могу придумать... ___ nginx-ru mailing list nginx-ru@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-ru

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 embedded in

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

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

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

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 session

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

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

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 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 have

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

Re: Nginx lua capture_multi fire and forget

2013-10-26 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, but