changeset 2075:db677318ce63 default tip

check empty local_cer_file
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 08 Dec 2025 11:26:31 -0700
parents 4d4feb3cc9d4
children
files src/luan/host/https.luan
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/luan/host/https.luan	Mon Dec 08 10:50:25 2025 -0700
+++ b/src/luan/host/https.luan	Mon Dec 08 11:26:31 2025 -0700
@@ -129,7 +129,7 @@
 				-- that uses it, place it in luan/host/sites/*/nginx.ssl.conf
 				-- and tell luan-host to reload nginx.
 
-			if key_file.exists() and local_cer_file.exists() then
+			if key_file.exists() and local_cer_file.exists() and local_cer_file.length() > 0 then
 				changed = true
 				-- the nginx config only requires 2 files:
 				-- fullchain.cer and DOMAIN.key