Sha256: 38a800e7a7fbd8a35a3ef0c9486b46a3f1ead61edfbe6d43e1d304ce2c850688

Contents?: true

Size: 1.07 KB

Versions: 1

Compression:

Stored size: 1.07 KB

Contents

set :templates_path, "config/deploy/templates"
set :nginx_server_name, -> { "localhost #{fetch(:application)}.local" }
set :nginx_config_name, -> { "#{fetch(:application)}_#{fetch(:stage)}" }
set :nginx_use_ssl, false
set :nginx_pid, "/run/nginx.pid"
set :nginx_ssl_certificate, -> { "#{fetch(:nginx_server_name)}.crt" }
set :nginx_ssl_certificate_key, -> { "#{fetch(:nginx_server_name)}.key" }
set :nginx_upload_local_certificate, true
set :nginx_ssl_certificate_local_path, -> { ask(:nginx_ssl_certificate_local_path, "Local path to ssl certificate: ") }
set :nginx_ssl_certificate_key_local_path, -> { ask(:nginx_ssl_certificate_key_local_path, "Local path to ssl certificate key: ") }
set :nginx_config_path, "/etc/nginx/sites-available"

set :unicorn_service_name, -> { "unicorn_#{fetch(:application)}_#{fetch(:stage)}" }
set :unicorn_pid, -> { shared_path.join("pids/unicorn.pid") }
set :unicorn_config, -> { shared_path.join("config/unicorn.rb") }
set :unicorn_log, -> { shared_path.join("log/unicorn.log") }
set :unicorn_user, -> { fetch(:user) }
set :unicorn_workers, 2
set :sudo, "sudo"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
capistrano-nginx-unicorn-0.1.0 lib/capistrano/nginx_unicorn/defaults.rb