diff host/startup/nginx/nginx.acme_setup.conf.luan @ 2062:5ede71739221

merge branches
author Franklin Schmidt <fschmidt@gmail.com>
date Sat, 15 Nov 2025 18:07:51 -0700
parents 2740f8a9ba3a
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/host/startup/nginx/nginx.acme_setup.conf.luan	Sat Nov 15 18:07:51 2025 -0700
@@ -0,0 +1,24 @@
+local rootDir, domain = ...
+
+%>
+	# This config exists to serve up acme challenges on
+	# .well-known for initial domain verification by letsencrypt.
+	# see set_https in luan/src/luan/host/https.luan for more.
+	server {
+		server_name <%=domain%>;
+		listen 80;
+		listen [::]:80;
+
+		error_log <%=rootDir%>/error.log;
+		access_log <%=rootDir%>/access.log;
+
+		root <%=rootDir%>;
+		index index.html;
+
+		location / {
+				try_files $uri $uri/ =404;
+		}
+	}
+
+<%
+