Sha256: edbfd13bafad092fa45fb50040d3eea8fe508f12b53db595e8f26f32c0a7a7b1
Contents?: true
Size: 1.03 KB
Versions: 2
Compression:
Stored size: 1.03 KB
Contents
module Capistrano module DSL module NginxPaths def nginx_sites_available_file "/etc/nginx/sites-available/#{fetch(:nginx_config_name)}" end def nginx_sites_enabled_file "/etc/nginx/sites-enabled/#{fetch(:nginx_config_name)}" end def nginx_service_path '/etc/init.d/nginx' end def nginx_default_pid_file '/run/nginx.pid' end # ssl related files def nginx_default_ssl_cert_file_name "#{fetch(:nginx_server_name)}.crt" end def nginx_default_ssl_cert_key_file_name "#{fetch(:nginx_server_name)}.key" end def nginx_ssl_cert_file "/etc/ssl/certs/#{fetch(:nginx_ssl_cert)}" end def nginx_ssl_cert_key_file "/etc/ssl/private/#{fetch(:nginx_ssl_cert_key)}" end # log files def nginx_access_log_file shared_path.join('log/nginx.access.log') end def nginx_error_log_file shared_path.join('log/nginx.error.log') end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
capistrano-unicorn-nginx-2.0.0 | lib/capistrano/dsl/nginx_paths.rb |
capistrano-unicorn-nginx-1.0.2 | lib/capistrano/dsl/nginx_paths.rb |