Sha256: 92dc6fdd3e8d63e9dc2cd7499245bbc7f0cba082003ceb6b401bc249ea4cc895
Contents?: true
Size: 804 Bytes
Versions: 8
Compression:
Stored size: 804 Bytes
Contents
# frozen_string_literal: true # Released under the MIT License. # Copyright, 2020-2024, by Samuel Williams. require_relative 'tls' require_relative '../environment' module Falcon module Environment # Provides an environment that uses "Lets Encrypt" for TLS. module LetsEncryptTLS # The Lets Encrypt certificate store path. # @parameter [String] def lets_encrypt_root '/etc/letsencrypt/live' end # The public certificate path. # @attribute [String] def ssl_certificate_path File.join(lets_encrypt_root, authority, "fullchain.pem") end # The private key path. # @attribute [String] def ssl_private_key_path File.join(lets_encrypt_root, authority, "privkey.pem") end end LEGACY_ENVIRONMENTS[:lets_encrypt_tls] = LetsEncryptTLS end end
Version data entries
8 entries across 8 versions & 1 rubygems