Skip to content

Commit f23e4b1

Browse files
committed
fix: nginx-sys enable a few modules by default
1 parent b3e8f45 commit f23e4b1

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

nginx-sys/build.rs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,28 +46,31 @@ const ALL_SERVERS_AND_PUBLIC_KEY_IDS: [(&str, &str); 4] = [
4646
NGX_GPG_SERVER_AND_KEY_ID,
4747
];
4848
/// List of configure switches specifying the modules to build nginx with
49-
const NGX_BASE_MODULES: [&str; 15] = [
49+
const NGX_BASE_MODULES: [&str; 20] = [
5050
"--with-compat",
51-
"--with-threads",
5251
"--with-http_addition_module",
5352
"--with-http_auth_request_module",
53+
"--with-http_flv_module",
5454
"--with-http_gunzip_module",
5555
"--with-http_gzip_static_module",
5656
"--with-http_random_index_module",
5757
"--with-http_realip_module",
5858
"--with-http_secure_link_module",
5959
"--with-http_slice_module",
60+
"--with-http_slice_module",
61+
"--with-http_ssl_module",
6062
"--with-http_stub_status_module",
6163
"--with-http_sub_module",
62-
"--with-stream",
64+
"--with-http_v2_module",
6365
"--with-stream_realip_module",
66+
"--with-stream_ssl_module",
6467
"--with-stream_ssl_preread_module",
68+
"--with-stream",
69+
"--with-threads",
6570
];
6671
/// Additional configuration flags to use when building on Linux.
67-
const NGX_LINUX_ADDITIONAL_OPTS: [&str; 5] = [
72+
const NGX_LINUX_ADDITIONAL_OPTS: [&str; 3] = [
6873
"--with-file-aio",
69-
"--with-http_ssl_module",
70-
"--with-stream_ssl_module",
7174
"--with-cc-opt=-g -fstack-protector-strong -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fPIC",
7275
"--with-ld-opt=-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -pie",
7376
];

0 commit comments

Comments
 (0)