Re: Access Nginx variables from HTTP modules

2018-03-29 Thread Paulo Silva
;variable_name, variable_name_hash); On Thu, Mar 29, 2018 at 4:39 PM, Vladimir Homutov wrote: > On Thu, Mar 29, 2018 at 04:17:02PM +0100, Paulo Silva wrote: >> Hi everyone, >> can you point me the right way to access Nginx variables from my HTTP module? >> >> I am lookin

Access Nginx variables from HTTP modules

2018-03-29 Thread Paulo Silva
Hi everyone, can you point me the right way to access Nginx variables from my HTTP module? I am looking for a way to read the $request_id value from within one of my modules' functions. Thanks, Paulo A. Silva https://a-caminho.de https://tech.pauloasilva.com __

Re: Development environment

2014-08-20 Thread Paulo Silva
Hi Richard, I am also new to nginx development and the best resource, so far are: * http://www.evanmiller.org/nginx-modules-guide.html * http://antoine.bonavita.free.fr/nginx_mod_dev_en.html I met a guy, Wandenberg Peixoto ( https://github.com/wandenberg) who has been an invaluable help. I called

Re: ngx_conf_set_str_array_slot() bug?

2014-08-18 Thread Paulo Silva
Great. I was looking for some modules that use this handler (thanks to grep) but it is not an easy task when we do not have an example of the configuration. Thanks a bunch, On Mon, Aug 18, 2014 at 7:32 PM, Valentin V. Bartenev wrote: > On Monday 18 August 2014 18:04:26 Paulo Silva wrote: &g

ngx_conf_set_str_array_slot() bug?

2014-08-18 Thread Paulo Silva
Hi, For a module with the following configuration /** * do_nothing_tuple "val1" "val2"; */ static ngx_command_t ngx_http_do_nothing_commands[] = { { ngx_string("do_nothing_tuple"), NGX_HTTP_LOC_CONF | NGX_CONF_TAKE2, ngx_conf_set_str_array_slot, NGX_HTTP_LOC

Re: Buffers Chain

2014-05-27 Thread Paulo Silva
f you wanted > to do something custom (e.g processing) or transmit it over a different > protocol not available as an extension. > > > On Mon, May 26, 2014 at 7:17 PM, Paulo Silva wrote: >> >> On Mon, May 26, 2014 at 9:28 AM, SplitIce wrote: >> > Yes, connectin

Re: Buffers Chain

2014-05-26 Thread Paulo Silva
nginx filter module. Sorry about so many questions but at the beginning, nginx is a all mystery, and you'll worried to do not break its performance. Thanks a bunch, > Regards, > Mathew > > > On Mon, May 26, 2014 at 6:18 PM, Paulo Silva wrote: >> >> On Mon, May 26, 2014 at

Re: Buffers Chain

2014-05-26 Thread Paulo Silva
ith the SOCK_NONBLOCK it would not block. What would be your approach? Do you know about any nginx internal mechanism to accomplish this goal (get the upstream response body out of nginx)? > > On Mon, May 26, 2014 at 9:22 AM, Paulo Silva wrote: >> >> Hi, >> I'm not

Re: Buffers Chain

2014-05-25 Thread Paulo Silva
7;m doing something really bad. Is it OK to use socket/connect/send from inside an nginx module? I would be glad to hear from you. Thanks, On Fri, May 23, 2014 at 2:50 PM, Paulo Silva wrote: > Because I don't have deep knowledge of nginx internal and I can not > find a proper resource ab

Re: Buffers Chain

2014-05-23 Thread Paulo Silva
ay 23, 2014 at 2:41 PM, Maxim Dounin wrote: > Hello! > > On Fri, May 23, 2014 at 02:17:27PM +0100, Paulo Silva wrote: > >> Hi, >> >> On Fri, May 23, 2014 at 12:58 PM, Maxim Dounin wrote: >> > Hello! >> > >> > On Fri, May 23, 2014 at 11:57:2

Re: Buffers Chain

2014-05-23 Thread Paulo Silva
Hi, On Fri, May 23, 2014 at 12:58 PM, Maxim Dounin wrote: > Hello! > > On Fri, May 23, 2014 at 11:57:20AM +0100, Paulo Silva wrote: > >> there is other option than modify the auto/modules file? >> >> According to my goal (capture the full request response body) I wo

Re: Buffers Chain

2014-05-23 Thread Paulo Silva
ime. A definitive guide to nginx (modules) development would be a best-seller ;) On Fri, May 23, 2014 at 11:20 AM, Maxim Dounin wrote: > Hello! > > On Fri, May 23, 2014 at 10:23:38AM +0100, Paulo Silva wrote: > >> @Maxim: nice hints, thanks. >> >> Let me ask you

Re: Buffers Chain

2014-05-23 Thread Paulo Silva
modified by other filters and than I will log an outdated copy. Thanks for your help. On Fri, May 23, 2014 at 10:12 AM, Maxim Dounin wrote: > Hello! > > On Thu, May 22, 2014 at 03:21:56PM +0100, Paulo Silva wrote: > >> Hi, >> Let me introduce the Elephant in the room. My name

Buffers Chain

2014-05-22 Thread Paulo Silva
Hi, Let me introduce the Elephant in the room. My name is Paulo and I'm from Portugal. I am starting developing nginx modules and I'm having a great time with buffers chain :D I'm using nginx as a reverse proxy and my goal is to log the full response body (HTML) on the server. I did start with a