summaryrefslogtreecommitdiffhomepage
path: root/docs (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2024-09-17docs/changes.xml: Add 1.33.0 changelog entriesAndrew Clayton1-0/+131
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
2024-08-21docs/openapi: Add new config optionsAndrew Clayton1-0/+152
Add entries for the new 'backlog' and 'listen_threads' config options introduced in commits 57c88fd40 ("router: Make the number of router threads configurable") and 76489fb7e ("conf, router: Make the listen(2) backlog configurable"). Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
2024-08-21docs/openapi: Fix brokennessAndrew Clayton1-43/+62
- Missing end quotes - Wrong indentation - Missing langMod parameter definition - Wrong type specification Fixes: ae4795aa1 ("docs/openapi: Add entries for the new /status/modules endpoint") Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
2024-08-19docs/openapi: Add entries for the new /status/modules endpointJon Torre1-1/+177
Unit now shows the loaded language modules under /status/modules. This functionality was added in commit 707f4ef82 ("status: Show list of loaded language modules"). [ Commit message - Andrew ] Co-developed-by: Andrew Clayton <a.clayton@nginx.com> Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
2024-08-19docs/openapi: Update the /status endpoint URLJon Torre1-17/+17
This was renamed to be more accurate as /status is not just about statistics, as it also now shows the loaded language modules. [ Commit message - Andrew ] Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
2024-06-18tools/unitctl: implement application subcommandAva Hahn1-1/+84
* application subcommand UI schema * application subcommand handler * additions to unit-client-rs to expose application API * elaborate on OpenAPI error handling * adds wasm and wasi app schemas to OpenAPI Schema * updates tools/unitctl OpenAPI library * many linter fixes * README.md updates Signed-off-by: Ava Hahn <a.hahn@f5.com>
2024-04-10Docs: njs (lowercase) is more preferred way to mentionAndrei Zeliankou1-5/+5
2024-03-21Added version 1.32.1 CHANGES1.32.1Andrei Zeliankou2-3/+3
2024-03-15Edited changes.xml for the 1.32.1 releaseAndrei Zeliankou1-0/+12
2024-03-15Version bumpAndrei Zeliankou1-0/+33
2024-03-12NJS: loader should be registered using njs_vm_set_module_loader()Andrei Zeliankou1-0/+6
This change makes NJS module incompatible with NJS older than 0.8.3. Therefore, the configuration version check has been adjusted accordingly. This change was introduced in NJS 0.8.3 here: <https://hg.nginx.com/njs/rev/ad1a7ad3c715>
2024-02-27Added version 1.32.0 CHANGES1.32.0Andrei Zeliankou2-3/+3
2024-02-27Version bumpAndrei Zeliankou1-0/+32
2024-02-27Edited changes.xml for the 1.32.0 releaseAndrei Zeliankou1-10/+80
2024-02-21Python: bytearray body support for ASGI module.Andrei Zeliankou1-0/+6
@filiphanes requested support for bytearray and memoryview in the request body here: <https://github.com/nginx/unit/issues/648> This patch implements bytearray body support only. Memoryview body still need to be implemented.
2024-02-20Updated copyright notice.Andrei Zeliankou1-12/+24
2024-02-20NJS: variable access supportZhidao HONG1-0/+6
This commit introduces the 'vars' JavaScript object to NJS, enabling direct access to native variables such as $uri and $arg_foo. The syntax is `${vars.var_name}` or `${'vars[var_name]'}`. For example: { "action": { "share": "`/www/html${vars.uri}`" } }
2024-02-19Docs: Update man page for new --control-* optionsAndrew Clayton1-0/+9
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
2024-02-14fix: Take options as well as requestListener (#1091)Gabor Javorszky1-0/+6
* Take options as well as requestListener Unit-http have not kept up with the signature of nodejs's http package development. Nodejs allows an optional `options` object to be passed to the `createServer` function, we didn't. This resulted in function signature errors when user code that did make use of the options arg tried to call unit's replaced function. This change changes the signature to be more in line with how nodejs does it discarding it and printing a message to stdout. * Add test file to start node application with options * Add changes to docs/changes.xml Closes: https://github.com/nginx/unit/issues/1043
2024-02-09Packages: added Ubuntu 23.10 "mantic" support.Konstantin Pavlov1-1/+28
2024-01-29Docs: Update changes.xml for conditional access loggingZhidao HONG1-0/+6
2024-01-26Node.js: fixed "httpVersion" variable formatAndrei Zeliankou1-0/+7
According to the Node.js documenation this variable should only include numbering scheme. Thanks to @dbit-xia. Closes: https://github.com/nginx/unit/issues/1085
2023-11-17Node.js: ServerResponse.flushHeaders() implemented.Andrei Zeliankou1-0/+7
This closes #1006 issue on GitHub. Reviewed-by: Andrew Clayton <a.clayton@nginx.com>
2023-11-08Var: $request_id variable.Andrei Zeliankou1-0/+7
This variable contains a string that is formed using random data and can be used as a unique request identifier. This closes #714 issue on GitHub.
2023-10-26Version bump.Andrei Zeliankou1-0/+30
2023-10-19Added version 1.31.1 CHANGES.Andrei Zeliankou1-2/+2
2023-10-19Edited changes.xml for the 1.31.1 release.Andrei Zeliankou1-0/+58
2023-10-19Prepearing for 1.31.1 release.Andrei Zeliankou2-4/+4
2023-10-11Rewrite and response headers mentioned in OpenAPI.Andrei Zeliankou1-1/+41
2023-10-04Proxy mentioned in OpenAPI.Andrei Zeliankou1-0/+15
2023-09-04Version bump.Andrei Zeliankou1-0/+31
2023-08-28Added version 1.31.0 CHANGES.Andrei Zeliankou1-2/+2
2023-08-28Mention WebAssembly application module in changes.xml.Andrei Zeliankou1-2/+13
Also separate header variables and "response_headers" option features.
2023-08-22Edited changes.xml for the 1.31.0 release.Andrei Zeliankou1-3/+4
2023-08-22Docs: added changelogs for unit-wasm.Konstantin Pavlov1-1/+15
2023-08-09HTTP: controlling response headers support.Zhidao HONG1-0/+6
2023-07-01Var: supported HTTP response header variables.Zhidao HONG1-0/+6
This commit adds the variable $response_header_NAME.
2023-07-11NJS: supported 0.8.0.Zhidao HONG1-0/+6
2023-05-25HTTP: fixed variable caching.Zhidao HONG1-0/+6
When a variable is accessed in the Unit configuration, the value is cached. This was useful prior to the URI rewrite feature, but now that the URI (more precisely, the request target) can be rewritten, the contents of the variable $uri (which contains the path part of the request target, and is decoded) should not be cached anymore, or at least the cached value should be invalidated after a URI rewrite. Example: { "rewrite": "/prefix$uri", "share": "$uri" } For a request line like GET /foo?bar=baz HTTP/1.1\r\n, the expected file served in the response would be /prefix/foo, but due to the caching issue, Unit currently serves /foo.
2023-05-24Updated copyright notice.Andrei Zeliankou1-1/+31
2023-05-24Version bump.Andrei Zeliankou1-0/+42
2023-05-10Added the initial version of the OpenAPI specification.Artem Konev1-0/+6334
2023-05-10Added version 1.30.0 CHANGES.Andrei Zeliankou1-2/+2
2023-05-10Edited "changes.xml" for the 1.30.0 release.Andrei Zeliankou1-4/+35
2023-05-03Packages: added Ubuntu 23.04 "lunar" support.Konstantin Pavlov1-1/+14
2023-05-08NJS: supported loadable modules.Zhidao HONG1-0/+6
2023-04-20HTTP: added basic URI rewrite.Zhidao HONG1-0/+6
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 <alx@nginx.com>
2023-05-08Docs: removed incorrect Pp call in unitd.8.Alejandro Colomar1-1/+0
Pp is used to separate paragraphs, not to introduce them. A Pp macro call right after Sh is wrong, and it is ignored by the formatter, which reports a warning about it. Signed-off-by: Alejandro Colomar <alx@nginx.com>
2023-05-08Docs: using appropriate mdoc(7) macros for URIs in unitd.8.Alejandro Colomar1-6/+3
Reviewed-by: Artem Konev <a.konev@f5.com> Signed-off-by: Alejandro Colomar <alx@nginx.com>
2023-05-08Docs: changed Authors section to Copyright section in unitd.8.Alejandro Colomar1-2/+4
The Authors section is meant to list the main authors. However, the section only contained the copyright notice, so the Copyright section seems more appropriate. While we change that, it makes sense to also specify the license, and update the copyright year. Reviewed-by: Liam Crilly <liam@nginx.com> Reviewed-by: Artem Konev <a.konev@f5.com> Signed-off-by: Alejandro Colomar <alx@nginx.com>