Home
last modified time | relevance | path

Searched hist:10 (Results 126 – 150 of 248) sorted by relevance

12345678910

/unit/test/
H A Dtest_static_share.pydiff 1971:3410f9d2a662 Mon Oct 18 00:10:00 UTC 2021 Andrei Zeliankou <zelenkov@nginx.com> Tests: style.
H A Dtest_ruby_hooks.pydiff 1971:3410f9d2a662 Mon Oct 18 00:10:00 UTC 2021 Andrei Zeliankou <zelenkov@nginx.com> Tests: style.
H A Dconftest.pydiff 2501:b92f74b2daac Mon Jul 10 00:57:00 UTC 2023 Andrei Zeliankou <zelenkov@nginx.com> Tests: fixed exception handling.
diff 2459:e5660c43e09c Wed May 10 12:02:00 UTC 2023 Andrei Zeliankou <zelenkov@nginx.com> Tests: added tests for NJS loadable modules.
diff 2314:bc5a90e2e6e8 Thu Jul 14 11:25:00 UTC 2022 Alejandro Colomar <alx.manpages@gmail.com> Added default values for pathnames.

This allows one to simply run `./configure` and expect it to
produce sane defaults for an install.

Previously, without specifying `--prefix=...`, `make install`
would simply fail, recommending to set `--prefix` or `DESTDIR`,
but that recommendation was incomplete at best, since it didn't
set many of the subdirs needed for a good organization.

Setting `DESTDIR` was even worse, since that shouldn't even affect
an installation (it is required to be transparent to the
installation).

/usr/local is the historic Unix standard path to use for
installations from source made manually by the admin of the
system. Some package managers (Homebrew, I'm looking specifically
at you) have abused that path to install their things, but 1) it's
not our fault that someone else incorrectly abuses that path (and
they seem to be fixing it for newer archs; e.g., they started
using /opt/homebrew for Apple Silicon), 2) there's no better path
than /usr/local, 3) we still allow changing it for systems where
this might not be the desired path (MacOS Intel with hombrew), and
4) it's _the standard_.

See a related conversation with Ingo (OpenBSD maintainer):

On 7/27/22 16:16, Ingo Schwarze wrote:
> Hi Alejandro,
[...]
>
> Alejandro Colomar wrote on Sun, Jul 24, 2022 at 07:07:18PM +0200:
>> On 7/24/22 16:57, Ingo Schwarze wrote:
>>> Alejandro Colomar wrote on Sun, Jul 24, 2022 at 01:20:46PM +0200:
>
>>>> /usr/local is for sysadmins to build from source;
>
>>> Doing that is *very* strongly discouraged on OpenBSD.
>
>> I guess that's why the directory was reused in the BSDs to install ports
>> (probably ports were installed by the sysadmin there, and by extension,
>> ports are now always installed there, but that's just a guess).
>
> Maybe. In any case, the practice of using /usr/local for packages
> created from ports is significantly older than the recommendation
> to refrain from using upstream "make install" outside the ports
> 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: <https://www.gnu.org/prep/standards/html_node/Directory-Variables.html>
Link: <https://refspecs.linuxfoundation.org/FHS_3.0/fhs/index.html>
Reviewed-by: Artem Konev <a.konev@f5.com>
Reviewed-by: Andrew Clayton <a.clayton@nginx.com>
Tested-by: Andrew Clayton <a.clayton@nginx.com>
Reviewed-by: Konstantin Pavlov <thresh@nginx.com>
Signed-off-by: Alejandro Colomar <alx@nginx.com>
diff 2062:ede07f84045b Mon Jan 10 13:07:00 UTC 2022 Max Romanov <max.romanov@nginx.com> Tests: using modules in Go.
diff 1971:3410f9d2a662 Mon Oct 18 00:10:00 UTC 2021 Andrei Zeliankou <zelenkov@nginx.com> Tests: style.
diff 1769:b7cd1517081e Fri Jan 08 10:38:00 UTC 2021 Tiago Natel de Moura <t.nateldemoura@f5.com> Tests: fixed test_respawn.py to act upon test processes.

Running `test_respawn_` test cases on a machine with Unit
daemon in background would fail tests because `ps ax` was
used without filtering out other unit instances.

This patch also prevents from tests killing other Unit
processes not related to tests.
diff 1630:f86da39fc891 Mon Oct 05 10:26:00 UTC 2020 Max Romanov <max.romanov@nginx.com> Tests: pretty versions output for multi-version tests.
H A Dtest_tls_session.pydiff 2502:f9a5455ba39e Mon Jul 10 14:24:00 UTC 2023 Andrei Zeliankou <zelenkov@nginx.com> Tests: check TLS methods availability more carefully.
H A Dtest_routing_tls.py1110:4ca6df50b4d4 Wed Jul 24 10:47:00 UTC 2019 Axel Duch <axel.duch@nginx.com> Added routing based on request scheme.

Scheme matches exact string “http” or “https”.
H A Dtest_go_isolation_rootfs.pydiff 1971:3410f9d2a662 Mon Oct 18 00:10:00 UTC 2021 Andrei Zeliankou <zelenkov@nginx.com> Tests: style.
/unit/src/
H A Dnxt_sockaddr.cdiff 2181:bb0bd4a80464 Thu Jul 28 14:10:00 UTC 2022 Alejandro Colomar <alx.manpages@gmail.com> Disallowed abstract unix socket syntax in non-Linux systems.

The previous commit added/fixed support for abstract Unix domain sockets
on Linux with a leading '@' or '\0'. To be consistent in all platforms,
treat those prefixes as markers for abstract sockets in all platforms,
and fail if abstract sockets are not supported by the platform.

That will avoid mistakes when copying a config file from a Linux system
and using it in non-Linux, which would surprisingly create a normal socket.
diff 1909:d6a5090da2ea Fri Jul 02 10:55:00 UTC 2021 Oisin Canty <o.canty@f5.com> Fixing crash during IPv6 text address generation.

When the textual representation of an IPv6 nxt_sockaddr_t was being
generated, a crash would occur if the address had a full IPv6 form:

f607:7403:1e4b:6c66:33b2:843f:2517:da27

This was caused by a variable that tracks the location of a
collapsed group ("::") that was not set to a sane default. When
the address was generated, a group would be inserted when
it was not necessary, thus causing an overflow.

This closes #481 issue on GitHub.
diff 10:a8e68ed06863 Wed Feb 01 16:20:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> nxt_str_t changes.
H A Dnxt_string.cdiff 1234:e56683f325ab Thu Oct 10 16:37:00 UTC 2019 Igor Sysoev <igor@sysoev.ru> Changed nxt_memcasecmp() interface to avoid casts.
diff 10:a8e68ed06863 Wed Feb 01 16:20:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> nxt_str_t changes.
H A Dnxt_runtime.cdiff 2375:da12f0827443 Sat Feb 25 23:37:00 UTC 2023 Andrew Clayton <a.clayton@nginx.com> Socket: Remove Unix domain listen sockets at shutdown.

If we don't remove the Unix domain listen socket file then when Unit
restarts it get an error like

2023/02/25 23:10:11 [alert] 36388#36388 bind(\"unix:/tmp/unit.sock\") failed (98: Address already in use)

This patch makes use of the listen_sockets array, that is already
allocated in the main process but never populated, to place the Unix
domain listen sockets into.

At shutdown we can then loop through this array and unlink(2) any Unix
domain sockets found therein.

Closes: <https://github.com/nginx/unit/issues/792>
Reviewed-by: Alejandro Colomar <alx@nginx.com>
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
diff 2314:bc5a90e2e6e8 Thu Jul 14 11:25:00 UTC 2022 Alejandro Colomar <alx.manpages@gmail.com> Added default values for pathnames.

This allows one to simply run `./configure` and expect it to
produce sane defaults for an install.

Previously, without specifying `--prefix=...`, `make install`
would simply fail, recommending to set `--prefix` or `DESTDIR`,
but that recommendation was incomplete at best, since it didn't
set many of the subdirs needed for a good organization.

Setting `DESTDIR` was even worse, since that shouldn't even affect
an installation (it is required to be transparent to the
installation).

/usr/local is the historic Unix standard path to use for
installations from source made manually by the admin of the
system. Some package managers (Homebrew, I'm looking specifically
at you) have abused that path to install their things, but 1) it's
not our fault that someone else incorrectly abuses that path (and
they seem to be fixing it for newer archs; e.g., they started
using /opt/homebrew for Apple Silicon), 2) there's no better path
than /usr/local, 3) we still allow changing it for systems where
this might not be the desired path (MacOS Intel with hombrew), and
4) it's _the standard_.

See a related conversation with Ingo (OpenBSD maintainer):

On 7/27/22 16:16, Ingo Schwarze wrote:
> Hi Alejandro,
[...]
>
> Alejandro Colomar wrote on Sun, Jul 24, 2022 at 07:07:18PM +0200:
>> On 7/24/22 16:57, Ingo Schwarze wrote:
>>> Alejandro Colomar wrote on Sun, Jul 24, 2022 at 01:20:46PM +0200:
>
>>>> /usr/local is for sysadmins to build from source;
>
>>> Doing that is *very* strongly discouraged on OpenBSD.
>
>> I guess that's why the directory was reused in the BSDs to install ports
>> (probably ports were installed by the sysadmin there, and by extension,
>> ports are now always installed there, but that's just a guess).
>
> Maybe. In any case, the practice of using /usr/local for packages
> created from ports is significantly older than the recommendation
> to refrain from using upstream "make install" outside the ports
> 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: <https://www.gnu.org/prep/standards/html_node/Directory-Variables.html>
Link: <https://refspecs.linuxfoundation.org/FHS_3.0/fhs/index.html>
Reviewed-by: Artem Konev <a.konev@f5.com>
Reviewed-by: Andrew Clayton <a.clayton@nginx.com>
Tested-by: Andrew Clayton <a.clayton@nginx.com>
Reviewed-by: Konstantin Pavlov <thresh@nginx.com>
Signed-off-by: Alejandro Colomar <alx@nginx.com>
diff 754:c8e0f350f0d4 Fri Aug 10 16:27:00 UTC 2018 Max Romanov <max.romanov@nginx.com> Stopping all application processes if router process dies.

Unit master process restarts the router if the router accidentally dies.
New router process receives the configuration from controller and starts
configured applications. The information of running applications cannot
be transferred to router because currently there is no persistent application
identifier. To avoid orphan application processes started by died router,
master process stops all currently running applications once it receives
SIGCHLD for router process.
diff 356:b6c89a2f537b Tue Oct 10 16:15:00 UTC 2017 Valentin Bartenev <vbart@nginx.com> Optimized application type handling.
diff 314:6cf55ca61038 Sun Sep 10 03:22:00 UTC 2017 Valentin Bartenev <vbart@nginx.com> Configuration persistence.

Now configuration survives server reloads.
diff 235:467cff8f6def Sat Aug 26 10:37:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Added configure and command line option --help.
diff 234:e0f17b03f52b Sat Aug 26 10:37:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Added configure and command line option --control.
diff 233:60bb2517a61d Sat Aug 26 10:37:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Added configure and command line option --modules.
diff 232:43f9808200cd Sat Aug 26 10:37:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Added configure option --user=USER and --group=GROUP.
diff 231:6832cdee961e Sat Aug 26 10:37:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Added configure option --pid=FILE.

A pid file name can be relative.
The default pid file name is "nginext.pid".
H A Dnxt_main.hdiff 642:84646cda45b8 Fri Apr 13 16:10:00 UTC 2018 Valentin Bartenev <vbart@nginx.com> Version bump.
diff 339:daecd866ae3b Mon Oct 02 14:10:00 UTC 2017 Valentin Bartenev <vbart@nginx.com> Version bump.
diff 190:0dbd1ceae3a2 Wed Aug 02 10:14:00 UTC 2017 Max Romanov <max.romanov@nginx.com> Port RPC interface introduced.

Usage:
1. Register handlers in incoming port with nxt_port_rpc_register_handler().
2. Use return value as a stream identifier for next nxt_port_socket_write().
diff 138:59fc46dd5e1d Mon Jul 10 18:07:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Introducing thread-safe nxt_random().
diff 14:556c5643cb8d Wed Feb 22 12:10:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Port changes.
H A Dnxt_conf.cdiff 1442:f215dd2184dd Wed Apr 01 15:33:00 UTC 2020 Valentin Bartenev <vbart@nginx.com> Fixed build with Clang 10, broken by 32578e837322.

This silences the -Wimplicit-int-float-conversion warning.
diff 1236:46331b9ef11a Fri Oct 11 10:00:00 UTC 2019 Tiago Natel <t.nateldemoura@f5.com> Fixed passing false in namespace flags.

This patch closes #328 in github.
diff 187:efc45d0bd807 Wed Aug 02 10:01:00 UTC 2017 Max Romanov <max.romanov@nginx.com> Using old-style packed attribute specification for compatibility.
diff 136:98eee55fda19 Mon Jul 10 14:55:00 UTC 2017 Valentin Bartenev <vbart@nginx.com> Configuration: nxt_conf_map_object() improvements.
H A Dnxt_sendbuf.hdiff 592:f2b174742bf3 Wed Mar 28 16:10:00 UTC 2018 Igor Sysoev <igor@sysoev.ru> nxt_port_buf_completion() and nxt_sendbuf_completion().

nxt_sendbuf_completion() has been renamed to nxt_port_buf_completion()
and moved to src/nxt_port_socket.c. nxt_sendbuf_completion0() has been
renamed to nxt_sendbuf_completion().
H A Dnxt_listen_socket.hdiff 228:d448bb7283b2 Sat Aug 26 10:37:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Removed unused function.
/unit/src/python/
H A Dnxt_python.cdiff 1697:73a335d2911d Tue Nov 10 19:27:00 UTC 2020 Max Romanov <max.romanov@nginx.com> Python: supporting ASGI legacy protocol.

Introducing manual protocol selection for 'universal' apps and frameworks.
diff 1601:365bbeccef1c Fri Sep 18 10:41:00 UTC 2020 Max Romanov <max.romanov@nginx.com> Python: app module callable name configuration.

Now it is possible to specify the name of the application callable using
optional parameter 'callable'. Default value is 'application'.

This closes #290 issue on GitHub.
1592:9727c9b61f1c Mon Sep 14 10:27:00 UTC 2020 Max Romanov <max.romanov@nginx.com> Python: split module initialization from WSGI implementation.

This is required for futher ASGI implementation.
/unit/pkg/rpm/
H A Dunit.spec.indiff 2464:8a0b4338a156 Wed May 10 17:29:00 UTC 2023 Konstantin Pavlov <thresh@nginx.com> Merged with the default branch.
diff 1751:a27532e3a17b Tue Nov 24 10:25:00 UTC 2020 Konstantin Pavlov <thresh@nginx.com> Packages: dropped support for non-systemd distributions.
diff 1016:05ce902a063b Tue Mar 26 10:22:00 UTC 2019 Andrei Belov <defan@nginx.com> Packages: added RHEL 8 support.
diff 860:d7873a1ecb49 Mon Nov 26 10:05:00 UTC 2018 Andrei Belov <defan@nginx.com> Packages: added strict version dependency for unit-dev/unit-devel.
diff 859:c9c2a57ac936 Mon Nov 26 10:05:00 UTC 2018 Andrei Belov <defan@nginx.com> Packages: added strict version dependency for unit-dev/unit-devel.
H A Dunit.module.spec.indiff 2464:8a0b4338a156 Wed May 10 17:29:00 UTC 2023 Konstantin Pavlov <thresh@nginx.com> Merged with the default branch.
diff 1016:05ce902a063b Tue Mar 26 10:22:00 UTC 2019 Andrei Belov <defan@nginx.com> Packages: added RHEL 8 support.
diff 914:4b96b1c0ae07 Mon Jan 28 10:45:00 UTC 2019 Andrei Belov <defan@nginx.com> Packages: reverted abb8cfb421f6 as it is no longer needed.

The fix has arrived in 1e802c31bbd9.
H A DMakefile.jsc-commondiff 2464:8a0b4338a156 Wed May 10 17:29:00 UTC 2023 Konstantin Pavlov <thresh@nginx.com> Merged with the default branch.
diff 1160:67ba8e19b286 Mon Sep 16 10:28:00 UTC 2019 Andrei Belov <defan@nginx.com> Packages: added explicit library path for Java on RPM based distros.

This helps to avoid using excessive strictness in RPATH of Java modules.
/unit/tools/
H A Dunitcdiff 2570:b9686295b0f2 Tue Oct 10 14:06:00 UTC 2023 Liam Crilly <liam.crilly@nginx.com> Tools: unitc YAML mode.

Added --format option to manage configuration in other formats.
Initially, YAML is the only supported conversion format.
JSON/YAML conversion is performed with yq(1).

Suggested by: Torstein Krause Johansen <https://github.com/skybert>
Closes: #958 <https://github.com/nginx/unit/issues/958>
diff 2405:01bcfffcd2af Tue Apr 04 10:29:00 UTC 2023 Liam Crilly <liam.crilly@nginx.com> Tools: use control socket and log file from running instance.

If unitd was started with an explicit path then unitc will use that
binary instead of the default PATH to obtain the default control socket
and log file locations.
/unit/src/nodejs/unit-http/
H A Dpackage.jsondiff 816:e92e58984512 Tue Oct 23 10:06:00 UTC 2018 Alexander Borisov <alexander.borisov@nginx.com> Added ability to publish Node.js module.
/unit/go/
H A Dport.godiff 1452:e95c10330013 Fri Apr 10 13:21:00 UTC 2020 Max Romanov <max.romanov@nginx.com> Resolving a racing condition while adding ports on the app's side.

An earlier attempt (ad6265786871) to resolve this condition on the
router's side added a new issue: the app could get a request before
acquiring a port.
/unit/pkg/deb/debian.module/
H A Drules.indiff 2464:8a0b4338a156 Wed May 10 17:29:00 UTC 2023 Konstantin Pavlov <thresh@nginx.com> Merged with the default branch.
diff 914:4b96b1c0ae07 Mon Jan 28 10:45:00 UTC 2019 Andrei Belov <defan@nginx.com> Packages: reverted abb8cfb421f6 as it is no longer needed.

The fix has arrived in 1e802c31bbd9.
/unit/pkg/docker/
H A DMakefilediff 2464:8a0b4338a156 Wed May 10 17:29:00 UTC 2023 Konstantin Pavlov <thresh@nginx.com> Merged with the default branch.
diff 2416:a54ac88ab88b Mon Apr 10 22:36:00 UTC 2023 Konstantin Pavlov <thresh@nginx.com> Docker: check out packaging tags.

This will ensure we're checking out source code that is close to what we
have in binary packages.

While at it, remove the checkout directory when it's no longer needed.
diff 2408:643602c07cc0 Mon Apr 10 22:36:00 UTC 2023 Konstantin Pavlov <thresh@nginx.com> Docker: check out packaging tags.

This will ensure we're checking out source code that is close to what we
have in binary packages.

While at it, remove the checkout directory when it's no longer needed.
diff 2091:1b18733cb113 Tue May 10 20:59:00 UTC 2022 Konstantin Pavlov <thresh@nginx.com> Docker: bumped language versions.
diff 1421:88c84fb7ac0f Thu Mar 19 10:16:00 UTC 2020 Konstantin Pavlov <thresh@nginx.com> Fixed filepath in the image checksum file.
diff 1298:07a2b86846ef Wed Nov 20 15:24:00 UTC 2019 Konstantin Pavlov <thresh@nginx.com> Moved docker images to Debian 10 "buster".

This changes the language versions we provide:
- python 3.5 -> python 3.7
- go 1.7/1.8 -> go 1.11
- perl 5.24 -> perl 5.28
- ruby 2.3 -> ruby 2.5
- php 7.0 -> php 7.3
/unit/auto/
H A Dunixdiff 733:d8656b9d7293 Mon Jul 16 10:30:00 UTC 2018 Sergey Kandaurov <pluknet@nginx.com> Added getentropy() support.

Prodded by David Carlier.
diff 732:ab017ff0ee67 Mon Jul 16 10:17:00 UTC 2018 Sergey Kandaurov <pluknet@nginx.com> Supplied getrandom() test with commentary about supported OSes.
/unit/test/unit/applications/lang/
H A Dpython.pydiff 1697:73a335d2911d Tue Nov 10 19:27:00 UTC 2020 Max Romanov <max.romanov@nginx.com> Python: supporting ASGI legacy protocol.

Introducing manual protocol selection for 'universal' apps and frameworks.
diff 1695:48cd8f20dea4 Tue Nov 10 19:27:00 UTC 2020 Max Romanov <max.romanov@nginx.com> Tests: supporting instant app parameters in load().
/unit/src/test/
H A Dnxt_unit_app_test.cdiff 1676:54d88fe4e8b1 Sun Nov 01 10:22:00 UTC 2020 Valentin Bartenev <vbart@nginx.com> Fixed building test app without debug.

Compilers complained about unused variables after 37e2a3ea1bf1.

12345678910