diff host/startup/nginx/nginx.default.conf.luan @ 2133:c3b4c19f2d8a

attempt to autodetect and use nginx confs dir
author Violet7
date Fri, 16 Jan 2026 17:29:05 -0800
parents 6a2383baecb6
children
line wrap: on
line diff
--- a/host/startup/nginx/nginx.default.conf.luan	Fri Jan 16 16:56:38 2026 -0800
+++ b/host/startup/nginx/nginx.default.conf.luan	Fri Jan 16 17:29:05 2026 -0800
@@ -1,4 +1,4 @@
-local rootDir = ...
+local luanhostDir = ...
 
 %>
 	client_max_body_size 32m;
@@ -7,7 +7,7 @@
 	proxy_set_header Host $http_host;
 	proxy_set_header Connection '';
 
-	error_log <%=rootDir%>/logs/nginx_error.log;
+	error_log <%=luanhostDir%>/logs/nginx_error.log;
 
 	proxy_set_header X-Forwarded-Proto $scheme;
 	proxy_set_header X-Real-IP $remote_addr;