Commit a30e1778 authored by Jonathan Coetzee's avatar Jonathan Coetzee

Only enable certficates in http module if conf.tls is explicitly true

If conf.tls is set to nil then certificates are setup, including rerolling ephemeral certs even though TLS on the webserver itself remains disabled.
parent ef0bc449
Pipeline #44378 failed with stages
in 11 minutes and 43 seconds
......@@ -275,7 +275,7 @@ end
-- @function Listen on given HTTP(s) host
function M.add_interface(conf)
local crt, key, ephemeral
if conf.tls ~= false then
if conf.tls == true then
-- Check if a cert file was specified
if not conf.cert then
conf.cert = 'self.crt'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment