Fw:Routing problems through cookies

2019-03-26 Thread 姜伯洋
map $cookie_wpt_debug $forward_to_gray { # When default is not specified, the default resulting value will be an empty string. default ""; 9cb88042edc55bf85c22e89cf880c63a 10.105.195.11; } if ( $forward_to_gray != '' ) { proxy_pass

[njs] Added Object.getOwnPropertyNames().

2019-03-26 Thread Dmitry Volyntsev
details: https://hg.nginx.org/njs/rev/5ef3dbe30d2d branches: changeset: 849:5ef3dbe30d2d user: Artem S. Povalyukhin date: Tue Mar 26 08:04:02 2019 +0300 description: Added Object.getOwnPropertyNames(). This closes #4 issue on Github. diffstat: njs/njs_json.c |4 +-

[njs] Version bump.

2019-03-26 Thread Dmitry Volyntsev
details: https://hg.nginx.org/njs/rev/f4a15ccf03c9 branches: changeset: 848:f4a15ccf03c9 user: Dmitry Volyntsev date: Tue Mar 26 23:06:46 2019 +0300 description: Version bump. diffstat: njs/njs.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diffs (12 lines): diff

Re: nginx-1.15.10

2019-03-26 Thread Maxim Dounin
Hello! On Tue, Mar 26, 2019 at 06:16:39PM +0100, A. Schulze wrote: > Am 26.03.19 um 17:50 schrieb Maxim Dounin: > > The difference is that in 1.15.10 you can put a certificate itself > > into a variable. Quoting docs: > > > > : The value data:$variable can be specified instead of the file >

Re: nginx-1.15.10

2019-03-26 Thread A. Schulze
Am 26.03.19 um 17:50 schrieb Maxim Dounin: > The difference is that in 1.15.10 you can put a certificate itself > into a variable. Quoting docs: > > : The value data:$variable can be specified instead of the file > : (1.15.10), which loads a certificate from a variable without using > :

Re: nginx-1.15.10

2019-03-26 Thread Maxim Dounin
Hello! On Tue, Mar 26, 2019 at 09:49:40PM +0530, Anoop Alias wrote: > On Tue, Mar 26, 2019 at 7:55 PM Maxim Dounin wrote: > > > Changes with nginx 1.15.10 26 Mar > > 2019 > > > > > > *) Feature: loading of SSL certificates and secret keys from

njs-0.3.0

2019-03-26 Thread Dmitry Volyntsev
Hello, I'm glad to announce a new release of NGINX JavaScript module (njs). This release proceeds to extend the coverage of ECMAScript specifications and modules functionality. - Added initial ES6 modules support: : // module.js : function sum(a, b) {return a + b} : export default {sum}; : //

Re: nginx-1.15.10

2019-03-26 Thread Anoop Alias
On Tue, Mar 26, 2019 at 7:55 PM Maxim Dounin wrote: > Changes with nginx 1.15.10 26 Mar > 2019 > > > *) Feature: loading of SSL certificates and secret keys from variables > The doc says: Since version 1.15.9, variables can be used in the file name

Re: [nginx-announce] nginx-1.15.10

2019-03-26 Thread Kevin Worthington
Hello Nginx users, Now available: Nginx 1.15.10 for Windows https://kevinworthington.com/nginxwin11510 (32-bit and 64-bit versions) These versions are to support legacy users who are already using Cygwin based builds of Nginx. Officially supported native Windows binaries are at nginx.org.

[nginx] Version bump.

2019-03-26 Thread Sergey Kandaurov
details: https://hg.nginx.org/nginx/rev/1144c122e370 branches: changeset: 7483:1144c122e370 user: Sergey Kandaurov date: Tue Mar 26 18:25:08 2019 +0300 description: Version bump. diffstat: src/core/nginx.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diffs (14

[nginx] SSL: missing free calls in $ssl_client_s_dn and $ssl_client_i_dn.

2019-03-26 Thread Sergey Kandaurov
details: https://hg.nginx.org/nginx/rev/65074e13f171 branches: changeset: 7484:65074e13f171 user: Nikolay Morozov date: Tue Mar 26 09:33:57 2019 +0300 description: SSL: missing free calls in $ssl_client_s_dn and $ssl_client_i_dn. If X509_get_issuer_name() or X509_get_subject_name()

[PATCH] SSL: missing free calls in $ssl_client_s_dn and $ssl_client_i_dn

2019-03-26 Thread Nikolay Morozov
# HG changeset patch # User Nikolay Morozov # Date 1553582037 -10800 # Tue Mar 26 09:33:57 2019 +0300 # Node ID 419a691bbd0601b0bba5068026b57d0b9a5c25e8 # Parent d9c3917c7f901ac2a0f4a483f3229a63b51840c5 SSL: missing free calls in $ssl_client_s_dn and $ssl_client_i_dn. If

Re: Protect against php files being send as static files

2019-03-26 Thread Olaf van der Spek
Ian Hobson Wrote: --- > If you place your php files outside the main root directory, and > then do something like this That'd good but unfortunately not common practice. It'd be nice to have better safety by default. Posted at Nginx Forum:

[nginx-announce] nginx-1.15.10

2019-03-26 Thread Maxim Dounin
Changes with nginx 1.15.10 26 Mar 2019 *) Change: when using a hostname in the "listen" directive nginx now creates listening sockets for all addresses the hostname resolves to (previously, only the first address was used). *) Feature:

nginx-1.15.10

2019-03-26 Thread Maxim Dounin
Изменения в nginx 1.15.10 26.03.2019 *) Изменение: теперь при использовании имени хоста в директиве listen nginx создаёт listen-сокеты для всех адресов, соответствующих этому имени (ранее использовался только первый адрес). *)

nginx-1.15.10

2019-03-26 Thread Maxim Dounin
Changes with nginx 1.15.10 26 Mar 2019 *) Change: when using a hostname in the "listen" directive nginx now creates listening sockets for all addresses the hostname resolves to (previously, only the first address was used). *) Feature:

[nginx] release-1.15.10 tag

2019-03-26 Thread Maxim Dounin
details: https://hg.nginx.org/nginx/rev/44df73d0fa71 branches: changeset: 7482:44df73d0fa71 user: Maxim Dounin date: Tue Mar 26 17:06:55 2019 +0300 description: release-1.15.10 tag diffstat: .hgtags | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diffs (8 lines): diff

[nginx] nginx-1.15.10-RELEASE

2019-03-26 Thread Maxim Dounin
details: https://hg.nginx.org/nginx/rev/75f5c7f62841 branches: changeset: 7481:75f5c7f62841 user: Maxim Dounin date: Tue Mar 26 17:06:54 2019 +0300 description: nginx-1.15.10-RELEASE diffstat: docs/xml/nginx/changes.xml | 60 ++ 1

[njs] Added tag 0.3.0 for changeset 1935ab4643fd

2019-03-26 Thread Dmitry Volyntsev
details: https://hg.nginx.org/njs/rev/5dae5875b22e branches: changeset: 847:5dae5875b22e user: Dmitry Volyntsev date: Tue Mar 26 16:58:43 2019 +0300 description: Added tag 0.3.0 for changeset 1935ab4643fd diffstat: .hgtags | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)

[njs] Version 0.3.0.

2019-03-26 Thread Dmitry Volyntsev
details: https://hg.nginx.org/njs/rev/1935ab4643fd branches: changeset: 846:1935ab4643fd user: Dmitry Volyntsev date: Tue Mar 26 16:56:32 2019 +0300 description: Version 0.3.0. diffstat: CHANGES | 36 1 files changed, 36 insertions(+), 0

Re: [PATCH] Remove memory leak in ngx_event_openssl.c

2019-03-26 Thread Sergey Kandaurov
> On 26 Mar 2019, at 10:02, Nikolay Morozov wrote: > > # HG changeset patch > # User Nikolay Morozov > # Date 1553582037 -10800 > # Tue Mar 26 09:33:57 2019 +0300 > # Node ID e3d5aaa0f3df9e0d60e384e78e40f6fb7bd4524f > # Parent d9c3917c7f901ac2a0f4a483f3229a63b51840c5 > Remove memory leak

Re:nginx Digest, Vol 113, Issue 33

2019-03-26 Thread 村长
achievable or supported currently with Stream mode? Below is the related config part. map $ssl_preread_server_name $backend_svr { ~^(\w+).test.com $1-tcp.default.svc.cluster.local; } limit_conn_zone $ssl_preread_server_name zone=perserver:10m; server { listen 443 reuseport s

[njs] Modules: improved working with arguments.

2019-03-26 Thread Dmitry Volyntsev
details: https://hg.nginx.org/njs/rev/4c7862cf1ba1 branches: changeset: 844:4c7862cf1ba1 user: Dmitry Volyntsev date: Tue Mar 26 15:35:45 2019 +0300 description: Modules: improved working with arguments. According to ES 5.1:10.5 direct checking of the number of arguments should be

[njs] Modules: returning undefined value for absent values.

2019-03-26 Thread Dmitry Volyntsev
details: https://hg.nginx.org/njs/rev/b758915e2406 branches: changeset: 842:b758915e2406 user: Dmitry Volyntsev date: Tue Mar 26 14:51:03 2019 +0300 description: Modules: returning undefined value for absent values. Instead of empty string. diffstat: nginx/ngx_http_js_module.c

[njs] Treating null and undefined as empty string for external prop set.

2019-03-26 Thread Dmitry Volyntsev
details: https://hg.nginx.org/njs/rev/c2c8cc00176f branches: changeset: 843:c2c8cc00176f user: Dmitry Volyntsev date: Tue Mar 26 15:28:18 2019 +0300 description: Treating null and undefined as empty string for external prop set. diffstat: njs/njs_object.c | 11 --- 1

[njs] Modules: added js_path directive.

2019-03-26 Thread Dmitry Volyntsev
details: https://hg.nginx.org/njs/rev/2e3ab9dc1328 branches: changeset: 845:2e3ab9dc1328 user: Dmitry Volyntsev date: Tue Mar 26 15:52:53 2019 +0300 description: Modules: added js_path directive. diffstat: nginx/ngx_http_js_module.c | 43

RE: TCP connection limit on dynamic backend

2019-03-26 Thread R, Rajkumar (Raj)
Thanks for your quick response. Is there a way to delay the execution of limit_conn. Please suggest if there's a way forward on this. thanks, raj -Original Message- From: nginx On Behalf Of Roman Arutyunyan Sent: Tuesday, March 26, 2019 4:59 PM To: nginx@nginx.org Subject: Re: TCP

Routing problems through cookies

2019-03-26 Thread 姜伯洋
map $cookie_wpt_debug $forward_to_gray { # When default is not specified, the default resulting value will be an empty string. default ""; 9cb88042edc55bf85c22e89cf880c63a 10.105.195.11; } if ( $forward_to_gray != '' ) { proxy_pass

Re: TCP connection limit on dynamic backend

2019-03-26 Thread Roman Arutyunyan
Hi, On Tue, Mar 26, 2019 at 09:13:44AM +, R, Rajkumar (Raj) wrote: > Hi, > > Using nginx in TCP/Stream mode and would like to limit the number of active > connection to my backend server whereas the backend is resolved dynamically > based on the SNI header ($ssl_preread_server_name). But

Re: Is it possible to add milliseconds in error.log and also timestamps

2019-03-26 Thread Maxim Dounin
Hello! On Tue, Mar 26, 2019 at 05:47:51AM -0400, sivak wrote: > Is it possible to add milliseconds in error.log No. > and also to include > timestamps in the output after executing below commands > > $NGINX_EXECUTABLE_FILE -I > $NGINX_EXECUTABLE_FILE -P There is no such commands. -- Maxim

Is it possible to add milliseconds in error.log and also timestamps

2019-03-26 Thread sivak
Is it possible to add milliseconds in error.log and also to include timestamps in the output after executing below commands $NGINX_EXECUTABLE_FILE -I $NGINX_EXECUTABLE_FILE -P Posted at Nginx Forum: https://forum.nginx.org/read.php?2,283506,283506#msg-283506

TCP connection limit on dynamic backend

2019-03-26 Thread R, Rajkumar (Raj)
Hi, Using nginx in TCP/Stream mode and would like to limit the number of active connection to my backend server whereas the backend is resolved dynamically based on the SNI header ($ssl_preread_server_name). But this does not allow any connections to the backend with below config. I see

[PATCH] Remove memory leak in ngx_event_openssl.c

2019-03-26 Thread Nikolay Morozov
# HG changeset patch # User Nikolay Morozov # Date 1553582037 -10800 # Tue Mar 26 09:33:57 2019 +0300 # Node ID e3d5aaa0f3df9e0d60e384e78e40f6fb7bd4524f # Parent d9c3917c7f901ac2a0f4a483f3229a63b51840c5 Remove memory leak in ngx_event_openssl.c If X509_get_issuer_name() or