-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
45 lines (36 loc) · 1.47 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
install: luarocks luapatches nginx/mime.types nginx/temp nginx/logs lualnclean lualn
lualnclean:
rm -f lua/upcache*
luarocks:
luarocks --tree=rocks install upcache 2.7.0
luarocks --tree=rocks install lua-toml 2.0
luarocks --tree=rocks install lua-resty-http 0.17.1
luarocks --tree=rocks install lua-resty-auto-ssl 0.13.1
#luarocks --tree=rocks install luafilesystem 1.8.0
#luarocks --tree=rocks install lua-cjson 2.1.0.6
curl -L https://github.com/openresty/lua-resty-lock/archive/v0.09.tar.gz | \
tar -C ./rocks/share/lua/5.1/ -x -v -z -f - \
--wildcards '*/lib/resty/*' --strip-components 2
curl -L https://github.com/openresty/lua-resty-lrucache/archive/v0.13.tar.gz | \
tar -C ./rocks/share/lua/5.1/ -x -v -z -f - \
--wildcards '*/lib/resty/*' --strip-components 2
curl -L https://github.com/openresty/lua-resty-redis/archive/v0.29.tar.gz | \
tar -C ./rocks/share/lua/5.1/ -x -v -z -f - \
--wildcards '*/lib/resty/*' --strip-components 2
luarocks --tree=rocks install nginx-lua-prometheus 0.20220127
echo "Run apt install lua-filesystem"
echo "Run apt install lua-cjson"
lualn:
cd rocks/share/lua/5.1/ && cp -sf ../../../../lua/* .
luapatches:
-patch --backup --forward --strip 1 --quiet --reject-file - < patches/autossl-otf.patch
nginx/mime.types:
cd nginx && ln -sf /etc/nginx/mime.types .
nginx/temp:
mkdir -p nginx/temp
nginx/logs:
mkdir -p nginx/logs
leclean:
rm -rf autossl/storage
rm -rf autossl/letsencrypt/certs
rm -rf autossl/letsencrypt/accounts