summaryrefslogtreecommitdiffhomepage
path: root/auto/sources (follow)
AgeCommit message (Collapse)AuthorFilesLines
2021-11-09Introduced SCM_CREDENTIALS / SCM_CREDS in the socket control msgs.Tiago Natel de Moura1-0/+1
2021-10-26Custom implementation of Base64 decoding function.Valentin Bartenev1-0/+1
Compared to the previous implementation based on OpenSSL, the new implementation has these advantages: 1. Strict and reliable detection of invalid strings, including strings with less than 4 bytes of garbage at the end; 2. Allows to use Base64 strings without '=' padding.
2020-11-17Router: matching regular expressions support.Axel Duch1-0/+11
2020-08-20Moved isolation related code to "nxt_isolation.c".Tiago Natel de Moura1-0/+1
2020-08-13Basic variables support.Valentin Bartenev1-0/+2
2020-06-23Upstream chunked transfer encoding support.Igor Sysoev1-1/+1
2020-05-28Added "rootfs" feature.Tiago Natel de Moura1-0/+5
2020-03-09Refactor of process management.Tiago Natel de Moura1-1/+1
The process abstraction has changed to: setup(task, process) start(task, process_data) prefork(task, process, mp) The prefork() occurs in the main process right before fork. The file src/nxt_main_process.c is completely free of process specific logic. The creation of a process now supports a PROCESS_CREATED state. The The setup() function of each process can set its state to either created or ready. If created, a MSG_PROCESS_CREATED is sent to main process, where external setup can be done (required for rootfs under container). The core processes (discovery, controller and router) doesn't need external setup, then they all proceeds to their start() function straight away. In the case of applications, the load of the module happens at the process setup() time and The module's init() function has changed to be the start() of the process. The module API has changed to: setup(task, process, conf) start(task, data) As a direct benefit of the PROCESS_CREATED message, the clone(2) of processes using pid namespaces now doesn't need to create a pipe to make the child block until parent setup uid/gid mappings nor it needs to receive the child pid.
2020-03-27Implemented "return" action.Valentin Bartenev1-0/+1
The "return" action can be used to immediately generate a simple HTTP response with an arbitrary status: { "action": { "return": 404 } } This is especially useful for denying access to specific resources.
2020-03-06Round robin upstream added.Igor Sysoev1-0/+1
2019-12-24Router: introducing routing on client address.Axel Duch1-0/+1
2019-12-06Isolation: allowed the use of credentials with unpriv userns.Tiago Natel1-0/+6
The setuid/setgid syscalls requires root capabilities but if the kernel supports unprivileged user namespace then the child process has the full set of capabilities in the new namespace, then we can allow setting "user" and "group" in such cases (this is a common security use case). Tests were added to ensure user gets meaningful error messages for uid/gid mapping misconfigurations.
2019-12-06Moved credential-related code to nxt_credential.c.Tiago Natel1-0/+1
This is required to avoid include cycles, as some nxt_clone_* functions depend on the credential structures, but nxt_process depends on clone structures.
2019-11-14Initial proxy support.Igor Sysoev1-0/+1
2019-09-19Basic support for serving static files.Valentin Bartenev1-0/+1
2019-09-19Initial applications isolation support using Linux namespaces.Tiago de Bem Natel de Moura1-0/+7
2019-08-20Introducing websocket support in router and libunit.Max Romanov1-0/+5
2019-02-27Initial routing implementation.Igor Sysoev1-0/+1
2018-10-23Removed unused "--upstream" command line option.Valentin Bartenev1-1/+1
2018-10-09Renamed "go" application type to "external".Valentin Bartenev1-1/+1
There's nothing specific to Go language. This type of application object can be used to run any external application that utilizes libunit API.
2018-09-20Controller: certificates storage interface.Valentin Bartenev1-1/+1
2018-09-20Added SSL/TLS support on connection level.Igor Sysoev1-5/+5
2018-08-06Unit application library.Max Romanov1-0/+2
Library now used in all language modules. Old 'nxt_app_*' code removed. See src/test/nxt_unit_app_test.c for usage sample.
2018-07-27Refactored thread ID functions.Igor Sysoev1-1/+0
nxt_thread_tid() was moved to src/nxt_thread.c nxt_thread_get_tid() was moved to src/nxt_thread_id.h. src/nxt_thread_id.c was removed.
2018-04-11Configure scripts cleanup.Valentin Bartenev1-2/+0
Thanks to 洪志道 (Hong Zhi Dao).
2017-12-28HTTP keep-alive connections support.Igor Sysoev1-0/+4
2017-12-01Using compiler capability to generate dependencies.Max Romanov1-76/+0
This closes #58 issue on GitHub.
2017-11-21Tests: move existing tests to "src" folder.Andrey Zelenkov1-18/+18
2017-10-05Improved applications versions handling.Valentin Bartenev1-0/+1
2017-09-22Removed fibers from compilation.Valentin Bartenev1-2/+0
It's not used anyway, but breaks building with musl. This closes issue #5 on GitHub.
2017-08-30Lib unit tests have been renamed to tests.Igor Sysoev1-21/+21
2017-08-29The process type enum exposed to go module.Max Romanov1-0/+1
2017-08-29The master process has been renamed to the main process.Igor Sysoev1-2/+2
2017-08-24Removed configure option --no-threads.Igor Sysoev1-20/+9
2017-08-17The new module configuration interface.Igor Sysoev1-0/+1
Configuration and building example: ./configure ./configure python ./configure php ./configure go make all or ./configure make nginext ./configure python make python ./configure php make php ./configure go make go Modules configuration options and building examples: ./configure python --module=python2 --config=python2.7-config make python2 ./configure php --module=php7 --config=php7.0-config --lib-path=/usr/local/php7.0 make php7 ./configure go --go=go1.6 --go-path=${HOME}/go1.6 make go1.6
2017-08-02Port RPC interface introduced.Max Romanov1-0/+1
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().
2017-07-05Configuration: basic validation of schema.Valentin Bartenev1-0/+1
2017-06-28Configuration: reduced names of structures, functions, and macros.Valentin Bartenev1-1/+1
2017-06-23Store pointer to shared memory start in buf->parent.Max Romanov1-0/+1
nxt_port_mmap_t stored in arrays and it is unsafe to store pointer to array element. Shared memory structures and macros moved to separate header file to be used by GO package.
2017-06-23lvlhash for ports moved to separate files for future re-use.Max Romanov1-0/+3
2017-06-20Using new memory pool implementation.Igor Sysoev1-5/+3
2017-06-19Memory pools refactoring.Igor Sysoev1-3/+3
2017-06-14nxt_event_conn_... functions and structures have been renamedIgor Sysoev1-8/+8
to nxt_conn_...
2017-05-31Skeleton of router configuration and request processing.Igor Sysoev1-0/+2
2017-05-12Using shared memory to send data via nxt_port.Max Romanov1-0/+2
Usage: b = nxt_port_mmap_get_buf(task, port, size); b->mem.free = nxt_cpymem(b->mem.free, data, size); nxt_port_socket_write(task, port, NXT_PORT_MSG_DATA, -1, 0, b);
2017-04-10JSON parsing in controller.Valentin Bartenev1-0/+2
2017-03-14Fixed unit tests building broken by the previous commit.Igor Sysoev1-11/+11
2017-03-09Processes refactoring.Igor Sysoev1-4/+6
The cycle has been renamed to the runtime.
2017-03-01HTTP parser.Valentin Bartenev1-0/+3
2017-03-01Removed legacy HTTP parser.Valentin Bartenev1-1/+0