changeset 2128:cfe173c8e104 default tip

fix
author Violet7
date Thu, 15 Jan 2026 21:30:07 -0800
parents 9d6603bdf729
children
files src/luan/host/Https.luan
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
diff -r 9d6603bdf729 -r cfe173c8e104 src/luan/host/Https.luan
--- a/src/luan/host/Https.luan	Thu Jan 15 21:00:12 2026 -0800
+++ b/src/luan/host/Https.luan	Thu Jan 15 21:30:07 2026 -0800
@@ -86,8 +86,6 @@
 			alias <%= files.acme_challenges.to_string() %>/;
 			try_files $uri $uri/ =404;
 		}
-		# allow users to upload custom nginx.*.conf files, e.g. for mixpanel
-		include <%=luanhost_dir%>/sites/<%=domain%>/site/nginx.*.conf;
 	}
 
 	server {
@@ -103,6 +101,8 @@
 		ssl_certificate_key <%= files.key_file.to_string() %>;
 		# path is relative to the dir of the conf this comment is found in.
 		include nginx.default.conf;
+		# allow users to upload custom nginx.*.conf files, e.g. for mixpanel
+		include <%=luanhost_dir.canonical().to_string()%>/sites/<%=domain%>/site/nginx.*.conf;
 	}
 <%
 end