comparison host/update2.sh @ 2129:6a2383baecb6 default tip

integrate into system nginx
author Violet7
date Fri, 16 Jan 2026 15:30:49 -0800
parents 059afc92310b
children
comparison
equal deleted inserted replaced
2128:cfe173c8e104 2129:6a2383baecb6
11 if [ ! -f local/tiny_account.key ]; then 11 if [ ! -f local/tiny_account.key ]; then
12 echo "Register letsencrypt (tiny-acme)" 12 echo "Register letsencrypt (tiny-acme)"
13 openssl genrsa 4096 >local/tiny_account.key 13 openssl genrsa 4096 >local/tiny_account.key
14 fi 14 fi
15 15
16 cp startup/nginx/mime.types local/mime.types
17 # id -gn gets the name of the primary group of the current user (staff) 16 # id -gn gets the name of the primary group of the current user (staff)
18 luan startup/nginx/nginx.conf.luan $(pwd) $(whoami) $(id -gn) >local/nginx.conf 17 luan startup/nginx/nginx.conf.luan $(pwd) $(whoami) $(id -gn) >local/nginx.conf
19 luan startup/nginx/nginx.default.conf.luan $(pwd) >local/nginx.default.conf 18 luan startup/nginx/nginx.default.conf.luan $(pwd) >local/nginx.default.conf
20 19
21 # this is done because the nginx conf uses absolute paths 20 # this is done because the nginx conf uses absolute paths
22 # and this breaks sites when the luan/host directory is moved 21 # and this breaks sites when the luan/host directory is moved
22 # NOTE: if the luanhost root dir changes, the nginx include needs to be manually updated to reflect the new path.
23 luan classpath:luan/host/update.luan 23 luan classpath:luan/host/update.luan
24 24
25 echo Starting... 25 echo Starting...
26 ./start.sh 26 ./start.sh