README.md in capistrano-nginx-unit-0.8.0 vs README.md in capistrano-nginx-unit-0.9.0
- old
+ new
@@ -43,17 +43,19 @@
```rb
set :nginx_unit_roles, -> { :app }
set :nginx_unit_control_sock, -> { "/var/run/control.unit.sock" }
set :nginx_unit_listen, -> { "*:3000" }
+set :nginx_unit_listener, -> { { pass: "applications/#{fetch(:nginx_unit_app_name)}" } }
set :nginx_unit_app_name, -> { fetch(:application) }
set :nginx_unit_processes, -> { nil }
set :nginx_unit_user, -> { nil }
set :nginx_unit_group, -> { nil }
set :nginx_unit_working_dir, -> { nil }
set :nginx_unit_script, -> { "config.ru" }
set :nginx_unit_environment, -> { {} }
+set :nginx_unit_limits, -> { nil }
```
- `:nginx_unit_roles`
Roles to run tasks for NGINX Unit. Default: `:app`
@@ -65,22 +67,29 @@
- `:nginx_unit_listen`
IP Address and port where rack application listens on. Default: `"*:3000"`
See [Listeners configuration](https://unit.nginx.org/configuration/#listeners)
+ - `:nginx_unit_listener`
+
+ Listener configuration of rack application processes. Default: `{ pass: "applications/#{fetch(:nginx_unit_app_name)}" }`
+ If you are using Nginx UNIT that doesn\`t support `pass` option, you can overwrite this configuration with `{ application: fetch(:nginx_unit_app_name) }`
+ (However, `application` option is currently deprecated.)
+ See [Listeners configuration](https://unit.nginx.org/configuration/#listeners)
+
- `:nginx_unit_app_name`
Application name.
See [Applications configuration](https://unit.nginx.org/configuration/#applications)
- `:nginx_unit_processes`
Number of rack application processes. Default: `1`
- See [Application Object configuration](https://unit.nginx.org/configuration/#application-objects)
+ You can also set the `Hash` that has keys `max`, `spare` and `idle_timeout`.
+ See [Processes and Limits](https://unit.nginx.org/configuration/#processes-and-limits)
- - `:nginx_unit_user`
- - `:nginx_unit_group`
+ - `:nginx_unit_user`, `:nginx_unit_group`
Username and group of rack application process. Default: `"nobody"`
See [Application Object configuration](https://unit.nginx.org/configuration/#application-objects)
- `:nginx_unit_working_dir`
@@ -95,6 +104,11 @@
- `:nginx_unit_environment` (NGINX Unit >= 1.2)
Environment variable setting. Default value is empty.
This variable accepts `Hash`. e.g., `{ "RAILS_ENV" => "production" }`.
-
\ No newline at end of file
+
+ - `:nginx_unit_limits`
+
+ Request limits of rack application processes. Default: `nil`(not specified)
+ You can set the `Hash` that has keys `requests` and `timeout`.
+ See [Processes and Limits](https://unit.nginx.org/configuration/#processes-and-limits)