class CertWatch::Configuration

Attributes

certbot_executable[RW]

File name of the certbot executable.

certbot_output_directory[RW]

Directory certbot outputs certificates to

certbot_port[RW]

Port for the standalone certbot HTTP server

pem_directory[RW]

Directory the web server reads pem files from

renewal_batch_size[RW]

Number of expiring certificates to renew in one run of the `RenewExpiringCertificatesJob`.

renewal_interval[RW]

Maximum age of certificates before renewal.

server_reload_command[RW]

Command to make server reload pem files

Public Class Methods

new() click to toggle source
# 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