History log of /unit/ (Results 76 – 100 of 1953)
Revision (<<< Hide revision tags) (Show revision tags >>>)Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
1962:13542e2a30e304-Oct-2021 Valentin Bartenev

Static: fixed possible descriptor leak introduced in a946d8cd7f8c.

1961:69d823e5710a01-Oct-2021 Zhidao HONG

Static: multiple paths in the "share" option.

1960:a5c08e4a994630-Sep-2021 Zhidao HONG

Static: variables in the "share" option.

This commit supports variable in the "share" option, the finding path to
file serve is the value from "share". An example:
{
"share": "/www/data/static$u

Static: variables in the "share" option.

This commit supports variable in the "share" option, the finding path to
file serve is the value from "share". An example:
{
"share": "/www/data/static$uri"
}

show more ...

1959:45b25ffb2e8c28-Sep-2021 Zhidao HONG

Static: variables in the "chroot" option.

1958:8e23e9bc94b521-Sep-2021 Konstantin Pavlov

Regenerated Dockerfiles.

1957:7a0ec2889c3721-Sep-2021 Konstantin Pavlov

Docker: bumped versions.
Minimal image now uses Debian 11 "Bullseye" as a base.

Language versions are bumped to:
- Go 1.17
- Node 16
- Perl 5.34
- Ruby 3.0

1956:f4c32c2d595d20-Sep-2021 Max Romanov

Fixed WebSocket connection hang issue after listener reconfigure.

Because the configuration values were read from the listener's configuration,
an established WebSocket connection was unable to work

Fixed WebSocket connection hang issue after listener reconfigure.

Because the configuration values were read from the listener's configuration,
an established WebSocket connection was unable to work properly (i. e. stuck)
if the listener was removed. The correct source of configuration values is the
request config joint.

This is related to issue #581 on GitHub.

show more ...

1955:e834792ed4e314-Sep-2021 Max Romanov

Fixing build with glibc 2.34.

Explicitly using the sysconf() call to obtain the minimum thread stack size
instead of the PTHREAD_STACK_MIN macro.

This closes #576 PR on GitHub.

1954:8f18a05d4c5807-Sep-2021 Zhidao HONG

Router: refactored variable pass.

Since the "pass" option supports both strings and variables, a generic
nxt_var_t structure can be used in the configuration phase, and the "name"
field in actions i

Router: refactored variable pass.

Since the "pass" option supports both strings and variables, a generic
nxt_var_t structure can be used in the configuration phase, and the "name"
field in actions is redundant.

No functional changes.

show more ...

1953:6b3c68839a1106-Sep-2021 Zhidao HONG

Var: keeping raw variable string for debug.

1952:0bca988e954125-Aug-2021 Valentin Bartenev

TLS: refactored nxt_tls_ticket_key_callback().

Deduplicated code and improved style.
No functional changes.

1951:863363011a9424-Aug-2021 Valentin Bartenev

Version bump.

1950:b946abe2fe0320-Aug-2021 Artem Konev

Fixed a typo in changes.xml.

Revision tags: 1.25.0-1
1947:f31526a3902419-Aug-2021 Valentin Bartenev

Unit 1.25.0 release.

Revision tags: 1.25.0
1946:54ffe5ce4fb319-Aug-2021 Valentin Bartenev

Generated Dockerfiles for Unit 1.25.0.

1945:0cb39c31123419-Aug-2021 Valentin Bartenev

Added version 1.25.0 CHANGES.

1944:6d8f035f071819-Aug-2021 Valentin Bartenev

Reordered changes for 1.25.0 by significance (subjective).

1943:747cb5eda18919-Aug-2021 Artem Konev

Edited changes.xml for the 1.25.0 release.

1942:296628096d6c17-Aug-2021 Andrey Suvorov

Added TLS session tickets support.

1941:c437a6538b6917-Aug-2021 Andrei Belov

Packages: added Debian 11 "bullseye" support.

1940:29c2c9d80c5b12-Aug-2021 Zhidao HONG

Introduced the generic API nxt_buf_dummy_completion().

No functional changes.

1939:bdaa7bd2730012-Aug-2021 Zhidao HONG

Log: renamed related variables "log" as "_log" to prevent conflicts.

1938:418e225f58e412-Aug-2021 Max Romanov

Java: upgrading third-party components.

1937:0791ba191da012-Aug-2021 Oisin Canty

Tests: client IP address replacement.

1936:953434450ea912-Aug-2021 Oisin Canty

Router: client IP address replacement.

This commit introduces the replacement of the client address based on the value
of a specified HTTP header. This is intended for use when Unit is placed
behin

Router: client IP address replacement.

This commit introduces the replacement of the client address based on the value
of a specified HTTP header. This is intended for use when Unit is placed
behind a reverse proxy like nginx or a CDN.

You must specify the source addresses of the trusted proxies. This can be
accomplished with any valid IP pattern supported by Unit's match block:

["10.0.0.1", "10.4.0.0/16", "!192.168.1.1"]

The feature is configured per listener.

The client address replacement functionality only operates when there is a
source IP match and the specified header is present. Typically this would be
an 'X-Forwarded-For' header.

{
"listeners": {
"127.0.0.1:8080": {
"client_ip": {
"header": "X-Forwarded-For",
"source": [
"10.0.0.0/8"
]
},
"pass": "applications/my_app"
},
}
}

If a request occurs and Unit receives a header like below:

"X-Forwarded-For: 84.123.23.23"

By default, Unit trusts the last rightmost IP in the header, so REMOTE_ADDR
will be set to 84.123.23.23 if the connection originated from 10.0.0.0/8.

If Unit runs behind consecutive reverse proxies and receives a header similar
to the following:

"X-Forwarded-For: 84.123.23.23, 10.0.0.254"

You will need to enable "recursive" checking, which walks the header from
last address to first and chooses the first non-trusted address it finds.

{
"listeners": {
"127.0.0.1:8080": {
"client_ip": {
"header": "X-Forwarded-For",
"source": [
"10.0.0.0/8"
]
"recursive": true,
},
"pass": "applications/my_app"
},
}
}

If a connection from 10.0.0.0/8 occurs, the chain is walked. Here, 10.0.0.254
is also a trusted address so the client address will be replaced with
84.123.23.23.

If all IP addresses in the header are trusted, the client address is set to
the first address in the header:

If 10.0.0.0/8 is trusted and "X-Forwarded-For: 10.0.0.3, 10.0.0.2, 10.0.0.1",
the client address will be replaced with 10.0.0.3.

show more ...

12345678910>>...79