diff host/doc/install.txt @ 2129:6a2383baecb6

integrate into system nginx
author Violet7
date Fri, 16 Jan 2026 15:30:49 -0800
parents 8311ddedf344
children aaf2795f4ed8
line wrap: on
line diff
--- a/host/doc/install.txt	Thu Jan 15 21:30:07 2026 -0800
+++ b/host/doc/install.txt	Fri Jan 16 15:30:49 2026 -0800
@@ -30,7 +30,18 @@
 7) compile
   ./update.sh
 
-8) open in browser http://me.luan.software:8080
+8) Configure nginx
+   nginx config can exist in many places, on old macOS it is usually /usr/local/etc/nginx/nginx.conf
+   can also exist at /usr/local/nginx/conf/nginx.conf or /etc/nginx/nginx.conf
+
+   add this line inside the `http` block
+   include /Users/administrator/luan/host/local/nginx.conf;
+
+   if nginx provides a default server, it conflicts with the luanhost one. remove or disable it.
+   on old macOS this usually does not exist and this step is not needed
+   sudo rm -r /etc/nginx/sites-enabled/default
+
+9) open in browser http://me.luan.software:8080
 
 Install on production/test machine:
 1 - 7 same