Class: CertWatch::Configuration
- Inherits:
-
Object
- Object
- CertWatch::Configuration
- Defined in:
- lib/cert_watch/configuration.rb
Instance Attribute Summary collapse
-
#certbot_executable ⇒ Object
File name of the certbot executable.
-
#certbot_output_directory ⇒ Object
Directory certbot outputs certificates to.
-
#certbot_port ⇒ Object
Port for the standalone certbot HTTP server.
-
#pem_directory ⇒ Object
Directory the web server reads pem files from.
-
#renewal_batch_size ⇒ Object
Number of expiring certificates to renew in one run of the ‘RenewExpiringCertificatesJob`.
-
#renewal_interval ⇒ Object
Maximum age of certificates before renewal.
-
#server_reload_command ⇒ Object
Command to make server reload pem files.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/cert_watch/configuration.rb', line 25 def initialize @renewal_interval = 1.month @renewal_batch_size = 10 @certbot_executable = '/usr/local/share/letsencrypt/bin/certbot' @certbot_port = 9999 @certbot_output_directory = '/etc/letsencrypt/live' @pem_directory = '/etc/haproxy/ssl/' @server_reload_command = '/etc/init.d/haproxy reload' end |
Instance Attribute Details
#certbot_executable ⇒ Object
File name of the certbot executable.
11 12 13 |
# File 'lib/cert_watch/configuration.rb', line 11 def certbot_executable @certbot_executable end |
#certbot_output_directory ⇒ Object
Directory certbot outputs certificates to
17 18 19 |
# File 'lib/cert_watch/configuration.rb', line 17 def certbot_output_directory @certbot_output_directory end |
#certbot_port ⇒ Object
Port for the standalone certbot HTTP server
14 15 16 |
# File 'lib/cert_watch/configuration.rb', line 14 def certbot_port @certbot_port end |
#pem_directory ⇒ Object
Directory the web server reads pem files from
20 21 22 |
# File 'lib/cert_watch/configuration.rb', line 20 def pem_directory @pem_directory end |
#renewal_batch_size ⇒ Object
Number of expiring certificates to renew in one run of the ‘RenewExpiringCertificatesJob`.
8 9 10 |
# File 'lib/cert_watch/configuration.rb', line 8 def renewal_batch_size @renewal_batch_size end |
#renewal_interval ⇒ Object
Maximum age of certificates before renewal.
4 5 6 |
# File 'lib/cert_watch/configuration.rb', line 4 def renewal_interval @renewal_interval end |
#server_reload_command ⇒ Object
Command to make server reload pem files
23 24 25 |
# File 'lib/cert_watch/configuration.rb', line 23 def server_reload_command @server_reload_command end |