From aaba6fdcc923fd4816eb450a4863740b743e86e2 Mon Sep 17 00:00:00 2001 From: Andrei Zeliankou Date: Fri, 16 Dec 2022 12:42:53 +0000 Subject: Version bump. --- docs/changes.xml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'docs/changes.xml') diff --git a/docs/changes.xml b/docs/changes.xml index e569f474..c031f2ab 100644 --- a/docs/changes.xml +++ b/docs/changes.xml @@ -5,6 +5,35 @@ + + + + +NGINX Unit updated to 1.30.0. + + + + + + + + + + + + + + +Initial release of Python 3.11 module for NGINX Unit. + + + + + + -- cgit From 141deec353c546674719d2bffe2fadeb174c4415 Mon Sep 17 00:00:00 2001 From: Zhidao HONG Date: Tue, 17 Jan 2023 10:37:45 +0800 Subject: NJS: added the keys API for the request objects. This commit is to loop through the request objects headers, arguments, and cookies. --- docs/changes.xml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'docs/changes.xml') diff --git a/docs/changes.xml b/docs/changes.xml index 262b4a7a..414f8672 100644 --- a/docs/changes.xml +++ b/docs/changes.xml @@ -32,6 +32,12 @@ NGINX Unit updated to 1.30.0. date="" time="" packager="Nginx Packaging <nginx-packaging@f5.com>"> + + +support the keys API on the request objects in NJS. + + + framework. > > * The FreeBSD ports framework was started by Jordan Hubbard in 1993. > * The ports framework was ported from FreeBSD to OpenBSD > by Niklas Hallqvist in 1996. > * NetBSD pkgsrc was forked from FreeBSD ports by Alistair G. Crooks > and Hubert Feyrer in 1997. > > I failed to quickly find Jordan's original version, but rev. 1.1 > of /usr/ports/infrastructure/mk/bsd.port.mk in OpenBSD (dated Jun 3 > 22:47:10 1996 UTC) already said > > LOCALBASE ?= /usr/local > PREFIX ?= ${LOCALBASE} > [...] >> I had a discussion in NGINX Unit about it, and >> the decission for now has been: "support prefix=/usr/local for default >> manual installation through the Makefile, and let BSD users adjust to >> their preferred path". > > That's an *excellent* solution for the task, thanks for doing it > the right way. By setting PREFIX=/usr/local by default in the > upstream Makefile, you are minimizing the work for *BSD porters. > > The BSD ports frameworks will typically run the upstreak "make install" > with the variable DESTDIR set to a custom value, for example > > DESTDIR=/usr/ports/pobj/groff-1.23.0/fake-amd64 > > so if the upstream Makefile sets PREFIX=/usr/local , > that's perfect, everything gets installed to the right place > without an intervention by the person doing the porting. > > Of course, if the upstream Makefile would use some other PREFIX, > that would not be a huge obstacle. All we have to do in that case > is pass the option --prefix=/usr/local to the ./configure script, > or something equivalent if the software isn't using GNU configure. > >> We were concerned that we might get collisions >> with the BSD port also installing in /usr/local, but that's the least >> evil (and considering BSD users don't typically run `make install`, it's >> not so bad). > > It's not bad at all. It's perfect. > > Of course, if a user wants to install *without* the ports framework, > they have to provide their own --prefix. But that's not an issue > because it is easy to do, and installing without a port is discouraged > anyway. === Directory variables should never contain a trailing slash (I've learned that the hard way, where some things would break unexpectedly). Especially, make(1) is likely to have problems when things have double slashes or a trailing slash, since it treats filenames as text strings. I've removed the trailing slash from the prefix, and added it to the derivate variables just after the prefix. pkg-config(1) also expects directory variables to have no trailing slash. === I also removed the code that would set variables as depending on the prefix if they didn't start with a slash, because that is a rather non-obvious behavior, and things should not always depend on prefix, but other dirs such as $(runstatedir), so if we keep a similar behavior it would be very unreliable. Better keep variables intact if set, or use the default if unset. === Print the real defaults for ./configure --help, rather than the actual values. === I used a subdirectory under the standard /var/lib for NXT_STATE, instead of a homemade "state" dir that does the same thing. === Modified the Makefile to create some dirs that weren't being created, and also remove those that weren't being removed in uninstall, probably because someone forgot to add them. === Add new options for setting the new variables, and rename some to be consistent with the standard names. Keep the old ones at configuration time for compatibility, but mark them as deprecated. Don't keep the old ones at exec time. === A summary of the default config is: Unit configuration summary: bin directory: ............. "/usr/local/bin" sbin directory: ............ "/usr/local/sbin" lib directory: ............. "/usr/local/lib" include directory: ......... "/usr/local/include" man pages directory: ....... "/usr/local/share/man" modules directory: ......... "/usr/local/lib/unit/modules" state directory: ........... "/usr/local/var/lib/unit" tmp directory: ............. "/tmp" pid file: .................. "/usr/local/var/run/unit/unit.pid" log file: .................. "/usr/local/var/log/unit/unit.log" control API socket: ........ "unix:/usr/local/var/run/unit/control.unit.sock" Link: Link: Reviewed-by: Artem Konev Reviewed-by: Andrew Clayton Tested-by: Andrew Clayton Reviewed-by: Konstantin Pavlov Signed-off-by: Alejandro Colomar --- docs/changes.xml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'docs/changes.xml') diff --git a/docs/changes.xml b/docs/changes.xml index 414f8672..569e49e5 100644 --- a/docs/changes.xml +++ b/docs/changes.xml @@ -38,6 +38,13 @@ support the keys API on the request objects in NJS. + + +added default values for 'make install' pathnames such as prefix; +this allows to do './configure && make && sudo make install'. + + + + +fix the memory leak related to njs. + + + -fix the memory leak related to njs. +stop creating world-writeable directories. + + + + + +memory leak related to NJS. + + + + + +path parsing in PHP applications. + + + + + +enabled UTF-8 for Python config by default to avoid applications failing +in some cases. + + + + + +using asyncio.get_running_loop() instead of asyncio.get_event_loop() +when it's available to prevent errors in some Python ASGI applications. + + + + + +applications that make use of various low level APIs such as pthreads could +fail to work correctly. + + + + + +PHP error handling (added missing 403 and 404 errors). + + + + + +websocket endianness detection for obscure operating systems. -- cgit From 0ebce31c9287cb97b626d61b62e83681b2864fe8 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Thu, 26 Jan 2023 15:07:12 +0100 Subject: HTTP: added route logging. - Configuration: added "/config/settings/http/log_route". Type: bool Default: false This adds configurability to the error log. It allows enabling and disabling logs related to how the router performs selection of the routes. - HTTP: logging request line. Log level: [notice] The request line is essential to understand which logs correspond to which request when reading the logs. - HTTP: logging route that's been discarded. Log level: [info] - HTTP: logging route whose action is selected. Log level: [notice] - HTTP: logging when "fallback" action is taken. Log level: [notice] Closes: Link: Link: Suggested-by: Timo Stark Suggested-by: Mark L Wood-Patrick Suggested-by: Liam Crilly Tested-by: Liam Crilly Acked-by: Artem Konev Cc: Andrew Clayton Cc: Andrei Zeliankou Reviewed-by: Zhidao Hong Signed-off-by: Alejandro Colomar --- docs/changes.xml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'docs/changes.xml') diff --git a/docs/changes.xml b/docs/changes.xml index fa60a965..740a51a5 100644 --- a/docs/changes.xml +++ b/docs/changes.xml @@ -32,6 +32,12 @@ NGINX Unit updated to 1.30.0. date="" time="" packager="Nginx Packaging <nginx-packaging@f5.com>"> + + +added conditional logging of route selection for HTTP requests. + + + support the keys API on the request objects in NJS. -- cgit From 14d6d97bacf9b06ba340ebd4211b2f1b6ad417dd Mon Sep 17 00:00:00 2001 From: Zhidao HONG Date: Thu, 20 Apr 2023 23:20:41 +0800 Subject: HTTP: added basic URI rewrite. This commit introduced the basic URI rewrite. It allows users to change request URI. Note the "rewrite" option ignores the contained query if any and the query from the request is preserverd. An example: "routes": [ { "match": { "uri": "/v1/test" }, "action": { "return": 200 } }, { "action": { "rewrite": "/v1$uri", "pass": "routes" } } ] Reviewed-by: Alejandro Colomar --- docs/changes.xml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'docs/changes.xml') diff --git a/docs/changes.xml b/docs/changes.xml index 740a51a5..6c89fa15 100644 --- a/docs/changes.xml +++ b/docs/changes.xml @@ -32,6 +32,12 @@ NGINX Unit updated to 1.30.0. date="" time="" packager="Nginx Packaging <nginx-packaging@f5.com>"> + + +basic URI rewrite support. + + + added conditional logging of route selection for HTTP requests. -- cgit From a3c3a29493798873ad04922bb2a7180b2ce267d5 Mon Sep 17 00:00:00 2001 From: Zhidao HONG Date: Mon, 8 May 2023 16:00:25 +0800 Subject: NJS: supported loadable modules. --- docs/changes.xml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'docs/changes.xml') diff --git a/docs/changes.xml b/docs/changes.xml index 6c89fa15..9567aebd 100644 --- a/docs/changes.xml +++ b/docs/changes.xml @@ -38,6 +38,12 @@ basic URI rewrite support. + + +njs loadable modules support. + + + added conditional logging of route selection for HTTP requests. -- cgit From 7a77f48a25f4f719c51ed83dac9bf5dd844ba3f3 Mon Sep 17 00:00:00 2001 From: Konstantin Pavlov Date: Wed, 3 May 2023 16:13:36 -0700 Subject: Packages: added Ubuntu 23.04 "lunar" support. --- docs/changes.xml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'docs/changes.xml') diff --git a/docs/changes.xml b/docs/changes.xml index 9567aebd..4828717b 100644 --- a/docs/changes.xml +++ b/docs/changes.xml @@ -14,7 +14,7 @@ unit-ruby unit-jsc-common unit-jsc8 unit-jsc10 unit-jsc11 unit-jsc13 unit-jsc14 unit-jsc15 unit-jsc16 unit-jsc17 unit-jsc18 - unit-jsc19" + unit-jsc19 unit-jsc20" ver="1.30.0" rev="1" date="" time="" packager="Nginx Packaging <nginx-packaging@f5.com>"> @@ -28,6 +28,19 @@ NGINX Unit updated to 1.30.0. + + + + +Initial release of Java 20 module for NGINX Unit. + + + + + + -- cgit From ec275200f7b8557877f193a190b285ca4f317a36 Mon Sep 17 00:00:00 2001 From: Andrei Zeliankou Date: Wed, 10 May 2023 16:07:25 +0100 Subject: Edited "changes.xml" for the 1.30.0 release. --- docs/changes.xml | 39 +++++++++++++++++++++++++++++++++++---- 1 file changed, 35 insertions(+), 4 deletions(-) (limited to 'docs/changes.xml') diff --git a/docs/changes.xml b/docs/changes.xml index 4828717b..6745694f 100644 --- a/docs/changes.xml +++ b/docs/changes.xml @@ -45,6 +45,12 @@ Initial release of Java 20 module for NGINX Unit. date="" time="" packager="Nginx Packaging <nginx-packaging@f5.com>"> + + +remove Unix domain listen sockets upon reconfiguration. + + + basic URI rewrite support. @@ -53,13 +59,19 @@ basic URI rewrite support. -njs loadable modules support. +NJS loadable modules support. -added conditional logging of route selection for HTTP requests. +per-application logging. + + + + + +conditional logging of route selection. @@ -71,8 +83,21 @@ support the keys API on the request objects in NJS. -added default values for 'make install' pathnames such as prefix; -this allows to do './configure && make && sudo make install'. +default values for 'make install' pathnames such as prefix; +this allows to './configure && make && sudo make install'. + + + + + +"server_version" setting to omit the version token from "Server" header field. + + + + + +request header field values could be corrupted in some cases; the bug had +appeared in 1.29.0. @@ -82,6 +107,12 @@ PHP error handling (added missing 403 and 404 errors). + + +Perl applications crash on second responder call. + + + -- cgit From 03718e0bdfb952a059954b6f601b7350eb9524a6 Mon Sep 17 00:00:00 2001 From: Andrei Zeliankou Date: Wed, 10 May 2023 16:53:01 +0100 Subject: Added version 1.30.0 CHANGES. --- docs/changes.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/changes.xml') diff --git a/docs/changes.xml b/docs/changes.xml index 6745694f..81fb1370 100644 --- a/docs/changes.xml +++ b/docs/changes.xml @@ -16,7 +16,7 @@ unit-jsc14 unit-jsc15 unit-jsc16 unit-jsc17 unit-jsc18 unit-jsc19 unit-jsc20" ver="1.30.0" rev="1" - date="" time="" + date="2023-05-10" time="18:00:00 +0300" packager="Nginx Packaging <nginx-packaging@f5.com>"> @@ -42,7 +42,7 @@ Initial release of Java 20 module for NGINX Unit. -- cgit