mirror of
https://github.com/neocities/neocities.git
synced 2025-08-06 01:24:56 +02:00
checkin of initial letsencrypt code
This commit is contained in:
parent
6a8aaacd20
commit
8473b99d56
11 changed files with 117 additions and 0 deletions
|
@ -152,3 +152,10 @@ end
|
|||
gandi_opts = {}
|
||||
gandi_opts[:env] = :test unless ENV['RACK_ENV'] == 'production'
|
||||
$gandi = Gandi::Session.new $config['gandi_api_key'], gandi_opts
|
||||
|
||||
# Let's Encrypt
|
||||
|
||||
$letsencrypt = Acme::Client.new(
|
||||
private_key: OpenSSL::PKey::RSA.new(File.read($config['letsencrypt_key'])),
|
||||
endpoint: $config['letsencrypt_endpoint']
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue