Class: CertWatch::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/cert_watch/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_executableObject

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_directoryObject

Directory to output obtained certificates to


17
18
19
# File 'lib/cert_watch/configuration.rb', line 17

def certbot_output_directory
  @certbot_output_directory
end

#certbot_portObject

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_directoryObject

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_sizeObject

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_intervalObject

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_commandObject

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