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
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
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
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-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Добрый день
Подскажите пожалуйста, как вернуть JSON в response?
Есть сам JSON
{"1_sign_level":"0200200","2_sign_level":"0200300"}
Пробовал ngx.say и cjson.encodeНо ничего не получается. Помогите,
пожалуйста, с кодом.
Posted at Nginx Forum:
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
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
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
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
И странно что такой путь до модуля
/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 июня
Спасибо! Я - динозавр как-то пропустил эту тему с динамическими
модулями. Работает :)
В письме от четверг, 9 июня 2016 г. 22:31:53 TSK пользователь Станислав
написал:
--add-dynamic-module=/usr/ports/www/nginx/work/lua-nginx-module-0.10.5
Потому что динамические модули нужно ещё и
Такое есть:
# 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
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
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
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-1.8 и lua5.1
На уровне http, указан access_by_lua_file, некоторый обработчик,
который помимо прочего ведет статистику запросов.
Однако, если в конфигурации какого-либо вирт-хоста, указан
локейшен с кодом возврата, то этот запрос идет мимо
доработать чужой код - сложнее, чем написать собственный.
если кто-то заказывает платную доработку по всей вероятности он не
готов сам программировать.
3 июля 2015 г., 17:00 пользователь xpwy nginx-fo...@nginx.us написал:
Daniel Podolsky Wrote:
В таком случае, есть ли вообще грамотный способ распространения платных lua
модулей?
Есть. Лицензия GPL (точнее, в случае всего, что связано с вебсервером — AGPL)
:)
Ну и вообще, лучше никогда не пытаться использовать копирастическую модель
скрытия того, что делает модуль от того, кто это
mva Wrote:
---
В таком случае, есть ли вообще грамотный способ распространения
платных lua
модулей?
Есть. Лицензия GPL (точнее, в случае всего, что связано с вебсервером
— AGPL)
:)
Ну и вообще, лучше никогда не пытаться использовать
Всем привет.
Есть ли возможность спрятать исходный код для lua скриптов?
Posted at Nginx Forum:
http://forum.nginx.org/read.php?21,260024,260024#msg-260024
___
nginx-ru mailing list
nginx-ru@nginx.org
Спрятать от чего?
В письме от Пт, 3 июля 2015 03:33:22 пользователь xpwy написал:
Всем привет.
Есть ли возможность спрятать исходный код для lua скриптов?
Posted at Nginx Forum:
http://forum.nginx.org/read.php?21,260024,260024#msg-260024
___
От чужих глаз конечно же :)
Я пробовал скомпилировать *.lua скрипт в *.so библиотеку и скормить ее
nginx. Но ничего не получилось (
Поэтому интересуюся, есть ли какие-нибудь способы.
Posted at Nginx Forum:
http://forum.nginx.org/read.php?21,260024,260026#msg-260026
luajit -b in.lua out.so
Прокатило, nginx работает как надо. Даже require работает из байткода.
Сейчас поизучал вопрос дtкомпеляции. Точно не уверен, но, как я понял,
исходники вернуть из байт кода очень сложно (чтобы один в один было, как это
делается с C# например). Это действительно так?
03.07.2015, 10:51, xpwy nginx-fo...@nginx.us:
От чужих глаз конечно же :)
Я пробовал скомпилировать *.lua скрипт в *.so библиотеку и скормить ее
nginx. Но ничего не получилось (
Поэтому интересуюся, есть ли какие-нибудь способы.
Можно скомпилировать скрипт в байткод с помощью luac и
On Friday 03 July 2015 17:08:19 Vadim A. Misbakh-Soloviov wrote:
В письме от Пт, 3 июля 2015 03:51:16 пользователь xpwy написал:
От чужих глаз конечно же :)
Я пробовал скомпилировать *.lua скрипт в *.so библиотеку и скормить ее
nginx. Но ничего не получилось (
Интересно, как вы это
03.07.2015, 12:48, xpwy nginx-fo...@nginx.us:
luajit -b in.lua out.so
Прокатило, nginx работает как надо. Даже require работает из байткода.
Сейчас поизучал вопрос дtкомпеляции. Точно не уверен, но, как я понял,
исходники вернуть из байт кода очень сложно (чтобы один в один было, как это
В письме от Пт, 3 июля 2015 03:51:16 пользователь xpwy написал:
От чужих глаз конечно же :)
Я пробовал скомпилировать *.lua скрипт в *.so библиотеку и скормить ее
nginx. Но ничего не получилось (
Интересно, как вы это пробовали (приведённый ниже пример с байткодом
записанном в .so — не
Да, вы правы :)
Я интересовался с целью распространения платных lua модулей.
Так как благодаря lua с nginx можно вытворять что угодно (практически).
Posted at Nginx Forum:
http://forum.nginx.org/read.php?21,260024,260036#msg-260036
___
nginx-ru
2015-07-03 14:30 GMT+03:00 xpwy nginx-fo...@nginx.us:
Я интересовался с целью распространения платных lua модулей.
Обфускация нужна только если вы туда защиту от несанкционированного
использования поместили. И тут lua byte code вам не поможет - то, что
выдает дизассемблер вполне пригодно для
Daniel Podolsky Wrote:
---
2015-07-03 14:30 GMT+03:00 xpwy nginx-fo...@nginx.us:
Я интересовался с целью распространения платных lua модулей.
Обфускация нужна только если вы туда защиту от несанкционированного
использования поместили. И тут
В таком случае, есть ли вообще грамотный способ распространения платных lua
модулей?
я не могу придумать...
___
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
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
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
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
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
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
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
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
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
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
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
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
43 matches
Mail list logo