@@ -6,24 +6,52 @@ if [[ $EUID -ne 0 ]]; then
6
6
exit 1
7
7
fi
8
8
9
+ # Define versions
10
+ NGINX_MAINLINE_VER=${NGINX_MAINLINE_VER:- 1.21.6}
11
+ NGINX_STABLE_VER=${NGINX_STABLE_VER:- 1.20.1}
12
+ LIBRESSL_VER=${LIBRESSL_VER:- 3.3.1}
13
+ OPENSSL_VER=${OPENSSL_VER:- 1.1.1l}
14
+ NPS_VER=${NPS_VER:- 1.13.35.2}
15
+ HEADERMOD_VER=${HEADERMOD_VER:- 0.33}
16
+ LIBMAXMINDDB_VER=${LIBMAXMINDDB_VER:- 1.4.3}
17
+ GEOIP2_VER=${GEOIP2_VER:- 3.3}
18
+ LUA_JIT_VER=${LUA_JIT_VER:- 2.1-20220310}
19
+ LUA_NGINX_VER=${LUA_NGINX_VER:- 0.10.21rc2}
20
+ LUA_RESTYCORE_VER=${LUA_RESTYCORE_VER:- 0.1.23rc1}
21
+ LUA_RESTYLRUCACHE_VER=${LUA_RESTYLRUCACHE_VER:- 0.11}
22
+ NGINX_DEV_KIT=${NGINX_DEV_KIT:- 0.3.1}
23
+ HTTPREDIS_VER=${HTTPREDIS_VER:- 0.3.9}
24
+ NGXECHO_VER=${NGXECHO_VER:- 0.62}
25
+ # Define options
26
+ NGINX_OPTIONS=${NGINX_OPTIONS:- "
27
+ --prefix=/etc/nginx \
28
+ --sbin-path=/usr/sbin/nginx \
29
+ --conf-path=/etc/nginx/nginx.conf \
30
+ --error-log-path=/var/log/nginx/error.log \
31
+ --http-log-path=/var/log/nginx/access.log \
32
+ --pid-path=/var/run/nginx.pid \
33
+ --lock-path=/var/run/nginx.lock \
34
+ --http-client-body-temp-path=/var/cache/nginx/client_temp \
35
+ --http-proxy-temp-path=/var/cache/nginx/proxy_temp \
36
+ --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp \
37
+ --user=nginx \
38
+ --group=nginx \
39
+ --with-cc-opt=-Wno-deprecated-declarations \
40
+ --with-cc-opt=-Wno-ignored-qualifiers" }
41
+ # Define modules
42
+ NGINX_MODULES=${NGINX_MODULES:- " --with-threads \
43
+ --with-file-aio \
44
+ --with-http_ssl_module \
45
+ --with-http_v2_module \
46
+ --with-http_mp4_module \
47
+ --with-http_auth_request_module \
48
+ --with-http_slice_module \
49
+ --with-http_stub_status_module \
50
+ --with-http_realip_module \
51
+ --with-http_sub_module" }
52
+
9
53
# Define installation parameters for headless install (fallback if unspecifed)
10
54
if [[ $HEADLESS == " y" ]]; then
11
- # Define versions
12
- NGINX_MAINLINE_VER=${NGINX_MAINLINE_VER:- 1.21.6}
13
- NGINX_STABLE_VER=${NGINX_STABLE_VER:- 1.20.1}
14
- LIBRESSL_VER=${LIBRESSL_VER:- 3.3.1}
15
- OPENSSL_VER=${OPENSSL_VER:- 1.1.1l}
16
- NPS_VER=${NPS_VER:- 1.13.35.2}
17
- HEADERMOD_VER=${HEADERMOD_VER:- 0.33}
18
- LIBMAXMINDDB_VER=${LIBMAXMINDDB_VER:- 1.4.3}
19
- GEOIP2_VER=${GEOIP2_VER:- 3.3}
20
- LUA_JIT_VER=${LUA_JIT_VER:- 2.1-20220310}
21
- LUA_NGINX_VER=${LUA_NGINX_VER:- 0.10.21rc2}
22
- LUA_RESTYCORE_VER=${LUA_RESTYCORE_VER:- 0.1.23rc1}
23
- LUA_RESTYLRUCACHE_VER=${LUA_RESTYLRUCACHE_VER:- 0.11}
24
- NGINX_DEV_KIT=${NGINX_DEV_KIT:- 0.3.1}
25
- HTTPREDIS_VER=${HTTPREDIS_VER:- 0.3.9}
26
- NGXECHO_VER=${NGXECHO_VER:- 0.62}
27
55
# Define options
28
56
OPTION=${OPTION:- 1}
29
57
NGINX_VER=${NGINX_VER:- 1}
@@ -52,32 +80,6 @@ if [[ $HEADLESS == "y" ]]; then
52
80
SSL=${SSL:- 1}
53
81
RM_CONF=${RM_CONF:- y}
54
82
RM_LOGS=${RM_LOGS:- y}
55
- NGINX_OPTIONS=${NGINX_OPTIONS:- "
56
- --prefix=/etc/nginx \
57
- --sbin-path=/usr/sbin/nginx \
58
- --conf-path=/etc/nginx/nginx.conf \
59
- --error-log-path=/var/log/nginx/error.log \
60
- --http-log-path=/var/log/nginx/access.log \
61
- --pid-path=/var/run/nginx.pid \
62
- --lock-path=/var/run/nginx.lock \
63
- --http-client-body-temp-path=/var/cache/nginx/client_temp \
64
- --http-proxy-temp-path=/var/cache/nginx/proxy_temp \
65
- --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp \
66
- --user=nginx \
67
- --group=nginx \
68
- --with-cc-opt=-Wno-deprecated-declarations \
69
- --with-cc-opt=-Wno-ignored-qualifiers" }
70
- # Define modules
71
- NGINX_MODULES=${NGINX_MODULES:- " --with-threads \
72
- --with-file-aio \
73
- --with-http_ssl_module \
74
- --with-http_v2_module \
75
- --with-http_mp4_module \
76
- --with-http_auth_request_module \
77
- --with-http_slice_module \
78
- --with-http_stub_status_module \
79
- --with-http_realip_module \
80
- --with-http_sub_module" }
81
83
fi
82
84
83
85
# Clean screen before launching menu
0 commit comments