Class: Capistrano::Puma::Nginx
- Inherits:
-
Capistrano::Plugin
- Object
- Capistrano::Plugin
- Capistrano::Puma::Nginx
show all
- Includes:
- Capistrano::PumaCommon
- Defined in:
- lib/capistrano/puma/nginx.rb
Instance Method Summary
collapse
#compiled_template_puma, #puma_bind, #puma_binds, #puma_switch_user, #puma_user, #service_unit_type, #template_puma
Instance Method Details
#define_tasks ⇒ Object
18
19
20
|
# File 'lib/capistrano/puma/nginx.rb', line 18
def define_tasks
eval_rakefile File.expand_path('../../tasks/nginx.rake', __FILE__)
end
|
#set_defaults ⇒ Object
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# File 'lib/capistrano/puma/nginx.rb', line 4
def set_defaults
set_if_empty :nginx_config_name, -> { "#{fetch(:application)}_#{fetch(:stage)}" }
set_if_empty :nginx_sites_available_path, '/etc/nginx/sites-available'
set_if_empty :nginx_sites_enabled_path, '/etc/nginx/sites-enabled'
set_if_empty :nginx_server_name, -> { "localhost #{fetch(:application)}.local" }
set_if_empty :nginx_flags, 'fail_timeout=0'
set_if_empty :nginx_http_flags, fetch(:nginx_flags)
set_if_empty :nginx_socket_flags, fetch(:nginx_flags)
set_if_empty :nginx_use_ssl, false
set_if_empty :nginx_use_http2, true
set_if_empty :nginx_downstream_uses_ssl, false
end
|