scriptbox/nginquic/build.sh

18 lines
826 B
Bash
Raw Normal View History

2022-01-30 13:45:00 +00:00
cd ~/
2022-01-30 14:45:34 +00:00
rm -rf nginquic
2022-01-30 13:48:39 +00:00
curl -sSL https://raw.githubusercontent.com/minoplhy/script/main/nginquic/packages.sh | bash
2022-01-30 13:45:00 +00:00
mkdir nginquic && cd nginquic
hg clone -b quic https://hg.nginx.org/nginx-quic
git clone https://github.com/google/boringssl
cd boringssl
mkdir build && cd build && cmake .. && make
cd .. && cd ..
cd nginx-quic
2022-01-30 13:48:39 +00:00
mkdir mosc && cd mosc && curl -sSL https://raw.githubusercontent.com/minoplhy/script/main/nginquic/modules.sh | bash && cd ..
curl -sSL https://raw.githubusercontent.com/minoplhy/script/main/nginquic/configure.sh | bash && make
mkdir /lib/nginx/ && mkdir /lib/nginx/modules
2022-01-30 13:55:52 +00:00
cd objs && cp *.so /lib/nginx/modules
2022-01-30 14:13:23 +00:00
rm /usr/sbin/nginx
2022-01-30 13:45:00 +00:00
cp nginx /usr/sbin/nginx
2022-01-30 13:48:39 +00:00
curl -sSL https://raw.githubusercontent.com/minoplhy/script/main/nginquic/modules.conf > modules.conf
2022-01-30 13:45:00 +00:00
cp modules.conf /etc/nginx/modules-enabled