lib/falcon/configuration.rb in falcon-0.26.0 vs lib/falcon/configuration.rb in falcon-0.27.0
- old
+ new
@@ -92,10 +92,16 @@
context.setup
end
end
end
+ add(:lets_encrypt, :ssl) do
+ lets_encrypt_root '/etc/letsencrypt/live'
+ ssl_certificate_path {File.join(lets_encrypt_root, authority, "fullchain.pem")}
+ ssl_private_key_path {File.join(lets_encrypt_root, authority, "privkey.pem")}
+ end
+
add(:self_signed, :ssl) do
ssl_context do
contexts = Localhost::Authority.fetch(authority)
contexts.server_context.tap do |context|
@@ -187,9 +193,9 @@
environment[:authority] = name
end
end
def load_file(path)
- self.instance_eval(File.read(path), path)
+ self.instance_eval(File.read(path), File.realpath(path))
end
end
end