summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_conf_validation.c (follow)
AgeCommit message (Collapse)AuthorFilesLines
2020-05-28Added "rootfs" feature.Tiago Natel de Moura1-0/+18
2020-05-14Router: decode uri and args.Axel Duch1-2/+115
2020-05-14PHP: implemented "targets" option.Valentin Bartenev1-23/+179
This allows to specify multiple subsequent targets inside PHP applications. For example: { "listeners": { "*:80": { "pass": "routes" } }, "routes": [ { "match": { "uri": "/info" }, "action": { "pass": "applications/my_app/phpinfo" } }, { "match": { "uri": "/hello" }, "action": { "pass": "applications/my_app/hello" } }, { "action": { "pass": "applications/my_app/rest" } } ], "applications": { "my_app": { "type": "php", "targets": { "phpinfo": { "script": "phpinfo.php", "root": "/www/data/admin", }, "hello": { "script": "hello.php", "root": "/www/data/test", }, "rest": { "root": "/www/data/example.com", "index": "index.php" }, } } } }
2020-05-14Configuration: URI encoding in the "pass" option.Valentin Bartenev1-33/+27
This is useful to escape "/" in path fragments. For example, in order to reference the application named "foo/bar": { "pass": "applications/foo%2Fbar" }
2020-03-30Rational number support in upstream server weight.Igor Sysoev1-7/+7
2020-03-30Configuration: support for rational numbers.Valentin Bartenev1-7/+7
2020-03-21Implemented "location" option for "return" action.Valentin Bartenev1-0/+5
This allows to specify redirects: { "action": { "return": 301, "location": "https://www.example.com/" } }
2020-03-27Implemented "return" action.Valentin Bartenev1-4/+34
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-12Using disk file to store large request body.Max Romanov1-0/+10
This closes #386 on GitHub.
2020-03-06Round robin upstream added.Igor Sysoev1-0/+130
2020-03-03Added a "fallback" option to be used with the "share" action.Valentin Bartenev1-0/+5
It allows proceeding to another action if a file isn't available. An example: { "share": "/data/www/", "fallback": { "pass": "applications/php" } } In the example above, an attempt is made first to serve a request with a file from the "/data/www/" directory. If there's no such file, the request is passed to the "php" application. Fallback actions may be nested: { "share": "/data/www/", "fallback": { "share": "/data/cache/", "fallback": { "proxy": "http://127.0.0.1:9000" } } }
2020-03-03Improved validation of the "action" object.Valentin Bartenev1-16/+41
Now it enforces the mutual exclusivity of "pass", "proxy", and "share" options.
2019-12-24Router: introducing routing on listener address.Axel Duch1-0/+5
2019-12-24Router: introducing routing on client address.Axel Duch1-0/+68
2019-12-24Adding "limits/shm" configuration validation and parsing.Max Romanov1-0/+5
2019-11-14Initial proxy support.Igor Sysoev1-4/+37
2019-10-10Style fixes.Igor Sysoev1-10/+9
2019-10-09Configuration: added check for mandatory options of "action".Valentin Bartenev1-2/+33
2019-09-19Basic support for serving static files.Valentin Bartenev1-0/+129
2019-09-19Initial applications isolation support using Linux namespaces.Tiago de Bem Natel de Moura1-67/+236
2019-08-20Introducing websocket support in router and libunit.Max Romanov1-0/+25
2019-07-24Added routing based on request scheme.Axel Duch1-0/+29
Scheme matches exact string “http” or “https”.
2019-05-30Added routing based on header fields.Igor Sysoev1-2/+66
2019-04-12Controller: rejecting double wildcards.Valentin Bartenev1-1/+6
2019-04-10Added support for wildcards in the middle of match patterns.Igor Sysoev1-3/+24
2019-03-22Style fixing.Max Romanov1-0/+1
This closes #233 issue on GitHub. Thanks to 洪志道 (Hong Zhi Dao).
2019-02-28Introducing Java Servlet Container beta.Max Romanov1-0/+71
2019-02-27Controller: added "routes" configuration.Valentin Bartenev1-0/+186
2019-02-27Controller: added "pass" configuration option.Valentin Bartenev1-0/+62
2018-10-09Renamed "go" application type to "external".Valentin Bartenev1-16/+16
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-0/+52
2018-07-09Controller: added "settings" configuration object.Valentin Bartenev1-0/+45
It has the following structure and default values: { "http": { "header_read_timeout": 30, "body_read_timeout": 30, "send_timeout": 30, "idle_timeout": 180, "max_body_size": 8388608 } }
2018-07-02Fixed error message about "spare" value.Valentin Bartenev1-1/+1
2018-06-25Introduced nxt_length() macro.Valentin Bartenev1-1/+1
2018-06-20Using own popcount where the compiler builtin is not available.Sergey Kandaurov1-1/+1
2018-06-07PHP: added setting of individual configuration options.Valentin Bartenev1-0/+30
2018-06-07PHP: added setting of php.ini configuration file path.Valentin Bartenev1-0/+15
2018-06-06Go: specifying command line arguments to the executable.Valentin Bartenev1-1/+59
This closes #110 issue on GitHub.
2018-05-28Configuration of environment variables for application processes.Valentin Bartenev1-0/+44
2018-04-11Initial access log support.Valentin Bartenev1-0/+5
2018-03-21Added Ruby support.Alexander Borisov1-0/+11
2018-02-09Changed the default number of spare processes to 0.Valentin Bartenev1-1/+1
2018-02-07Style fixes.Andrey Zelenkov1-5/+3
2018-02-06Fixed configuration checks for "max" property.Andrey Zelenkov1-16/+11
2018-01-31Added Perl support.Alexander Borisov1-0/+11
2018-01-29Introducing extended app process management.Max Romanov1-4/+139
- Pre-fork 'processes.spare' application processes; - fork more processes to keep 'processes.spare' idle processes; - fork on-demand up to 'processes.max' count; - scale down idle application processes above 'processes.spare' after 'processes.idle_timeout'; - number of concurrently started application processes also limited by 'processes.spare' (or 1, if spare is 0).
2018-01-18Ability to validate configuration options with multiple types.Valentin Bartenev1-45/+102
2018-01-18Reduced duplication of validated app config options.Max Romanov1-65/+17
Common options moved to separate array. Application-specific arrays refers to common options.
2018-01-18Introducing pretty NXT_CONF_VLDT_END macro.Max Romanov1-6/+9
2017-12-28Removed duplicate declaration.Igor Sysoev1-1/+1