Skip to content

Commit 69235c5

Browse files
committed
Merged with the default branch.
2 parents b9bc222 + faf97dc commit 69235c5

File tree

202 files changed

+4743
-6555
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

202 files changed

+4743
-6555
lines changed

.hgtags

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,6 @@ ea073fb3cb75abfb4be5dc12402de73e0c20da60 1.28.0
6767
16e01c5fead470d8f630613b973a50a33fd0d0f2 1.28.0-1
6868
37cac7fec92e5656d8a03a8594ade131c3391f45 1.29.0
6969
2927b72847d44913233fa303438a14ec313d860e 1.29.0-1
70+
fa0227b7f62691a186d752ace475868de49e9fce 1.29.1
7071
e7b7f2bb04e8c6f4cbe6374fd6960d4465654215 1.29.1-1
72+
2692a5823c403a4e209681943e32a4907317d14b 1.30.0

CHANGES

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,32 @@
11

2+
Changes with Unit 1.30.0 10 May 2023
3+
4+
*) Change: remove Unix domain listen sockets upon reconfiguration.
5+
6+
*) Feature: basic URI rewrite support.
7+
8+
*) Feature: NJS loadable modules support.
9+
10+
*) Feature: per-application logging.
11+
12+
*) Feature: conditional logging of route selection.
13+
14+
*) Feature: support the keys API on the request objects in NJS.
15+
16+
*) Feature: default values for 'make install' pathnames such as prefix;
17+
this allows to './configure && make && sudo make install'.
18+
19+
*) Feature: "server_version" setting to omit the version token from
20+
"Server" header field.
21+
22+
*) Bugfix: request header field values could be corrupted in some cases;
23+
the bug had appeared in 1.29.0.
24+
25+
*) Bugfix: PHP error handling (added missing 403 and 404 errors).
26+
27+
*) Bugfix: Perl applications crash on second responder call.
28+
29+
230
Changes with Unit 1.29.1 28 Feb 2023
331

432
*) Bugfix: stop creating world-writeable directories.

CODE_OF_CONDUCT.md

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, sex characteristics, gender identity and expression,
9+
level of experience, education, socio-economic status, nationality, personal
10+
appearance, race, religion, or sexual identity and orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
- Using welcoming and inclusive language
18+
- Being respectful of differing viewpoints and experiences
19+
- Gracefully accepting constructive criticism
20+
- Focusing on what is best for the community
21+
- Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
- The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
- Trolling, insulting/derogatory comments, and personal or political attacks
28+
- Public or private harassment
29+
- Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
- Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the moderation team at nginx-oss-community@f5.com. All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org), version 1.4,
71+
available at <https://www.contributor-covenant.org/version/1/4/code-of-conduct.html>
72+
73+
For answers to common questions about this code of conduct, see
74+
<https://www.contributor-covenant.org/faq>

README.md

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,17 @@
55
![NGINX Unit Logo](docs/unitlogo.svg)
66

77
NGINX Unit is a lightweight and versatile open-source server that has
8-
three core capabilities:
8+
two primary capabilities:
99

10-
- it is an HTTP reverse proxy,
11-
- a web server for static media assets,
12-
- and an application server that runs code in seven languages.
10+
- serves static media assets,
11+
- runs application code in seven languages.
1312

14-
We are building a universal tool that compresses several layers of the modern
15-
application stack into a potent, coherent solution with a focus on performance,
16-
low latency, and scalability. It is intended as a building block for any web
17-
architecture regardless of its complexity, from enterprise-scale deployments to
18-
your pet's homepage.
13+
Unit compresses several layers of the modern application stack into a potent,
14+
coherent solution with a focus on performance, low latency, and scalability. It
15+
is intended as a universal building block for any web architecture regardless
16+
of its complexity, from enterprise-scale deployments to your pet's homepage.
1917

20-
Unit's native RESTful JSON API enables dynamic updates with zero interruptions
18+
Its native RESTful JSON API enables dynamic updates with zero interruptions
2119
and flexible configuration, while its out-of-the-box productivity reliably
2220
scales to production-grade workloads. We achieve that with a complex,
2321
asynchronous, multithreading architecture comprising multiple processes to
@@ -162,7 +160,7 @@ For full details of configuration management, see the
162160
## Community
163161

164162
- The go-to place to start asking questions and share your thoughts is
165-
our [Slack channel](https://nginxcommunity.slack.com/).
163+
our [Slack channel](https://community.nginx.org/joinslack).
166164

167165
- Our [GitHub issues page](https://github.com/nginx/unit/issues) offers
168166
space for a more technical discussion at your own pace.

auto/echo/build

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55

66
$echo 'building an "echo" program'
77

8-
rm -f $NXT_BUILD_DIR/echo
8+
rm -f $NXT_BUILD_DIR/bin/echo
99

10-
nxt_echo_test="$CC -o $NXT_BUILD_DIR/echo -O $NXT_CC_OPT
10+
nxt_echo_test="$CC -o $NXT_BUILD_DIR/bin/echo -O $NXT_CC_OPT
1111
auto/echo/echo.c $NXT_LD_OPT"
1212

1313
# "|| true" is to bypass "set -e" setting.
1414
nxt_echo_err=`$nxt_echo_test 2>&1 || true`
1515

16-
if [ ! -x $NXT_BUILD_DIR/echo ]; then
16+
if [ ! -x $NXT_BUILD_DIR/bin/echo ]; then
1717
$echo
1818
$echo $0: error: cannot build an \"echo\" program:
1919
$echo
@@ -24,4 +24,4 @@ if [ ! -x $NXT_BUILD_DIR/echo ]; then
2424
exit 1
2525
fi
2626

27-
echo=$NXT_BUILD_DIR/echo
27+
echo=$NXT_BUILD_DIR/bin/echo

auto/help

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,31 @@ cat << END
1111
--cc-opt=OPTIONS set additional C compiler options
1212
--ld-opt=OPTIONS set additional linker options
1313

14-
--prefix=DIRECTORY set prefix for relative pathnames, default: none
15-
--bindir=DIRECTORY set user executables directory name
16-
default: "$NXT_BINDIR"
17-
--sbindir=DIRECTORY set system admin executables directory name
18-
default: "$NXT_SBINDIR"
19-
--libdir=DIRECTORY set library directory name, default: "$NXT_LIBDIR"
20-
--incdir=DIRECTORY set includes directory name, default: "$NXT_INCDIR"
21-
--mandir=DIRECTORY set man pages directory name, default: "$NXT_MANDIR"
22-
--modules=DIRECTORY set modules directory name, default: "$NXT_MODULES"
23-
--state=DIRECTORY set state directory name, default: "$NXT_STATE"
24-
--tmp=DIRECTORY set tmp directory name, default: "$NXT_TMP"
25-
26-
--pid=FILE set pid filename, default: "$NXT_PID"
27-
--log=FILE set log filename, default: "$NXT_LOG"
14+
--prefix=DIR default: "/usr/local"
15+
--exec-prefix=DIR default: "\$prefix"
16+
--bindir=DIR default: "\$exec_prefix/bin"
17+
--sbindir=DIR default: "\$exec_prefix/sbin"
18+
--includedir=DIR default: "\$prefix/include"
19+
--libdir=DIR default: "\$exec_prefix/lib"
20+
--modulesdir=DIR default: "\$libdir/unit/modules"
21+
--datarootdir=DIR default: "\$prefix/share"
22+
--mandir=DIR default: "\$datarootdir/man"
23+
--localstatedir=DIR default: "\$prefix/var"
24+
--statedir=DIR default: "\$localstatedir/lib/unit"
25+
--runstatedir=DIR default: "\$localstatedir/run/unit"
26+
--logdir=DIR default: "\$localstatedir/log/unit"
27+
--tmpdir=DIR default: "/tmp"
28+
29+
--incdir=DIR [deprecated] synonym for --includedir
30+
--modules=DIR [deprecated] synonym for --modulesdir
31+
--state=DIR [deprecated] synonym for --statedir
32+
--tmp=DIR [deprecated] synonym for --tmpdir
33+
34+
--pid=FILE set pid filename, default: "\$runstatedir/unit.pid"
35+
--log=FILE set log filename, default: "\$logdir/unit.log"
2836

2937
--control=ADDRESS set address of control API socket
30-
default: "$NXT_CONTROL"
38+
default: "unix:\$runstatedir/control.unit.sock"
3139

3240
--user=USER set non-privileged processes to run as specified user
3341
default: "$NXT_USER"

0 commit comments

Comments
 (0)