Created
July 23, 2021 23:38
-
-
Save jeromescuggs/41533872698141f155d821dc7f57e3f1 to your computer and use it in GitHub Desktop.
quick QUIC
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# store the current dir | |
CUR_DIR=$(dirname $(readlink -f $0)) | |
mkdir factory | |
cd $CUR_DIR/factory | |
wget https://hg.nginx.org/nginx-quic/archive/quic.tar.gz | |
tar xvf quic.tar.gz | |
git clone https://github.com/google/ngx_brotli | |
cd $CUR_DIR/factory/ngx_brotli | |
git submodule update --init | |
cd $CUR_DIR/factory | |
git clone https://github.com/google/boringssl | |
cd boringssl | |
mkdir build && cd build | |
cmake -GNinja .. | |
ninja | |
cd $CUR_DIR/factory/nginx-quic-quic | |
$CUR_DIR/factory/nginx-quic-quic/auto/configure --with-debug --with-http_v3_module \ | |
--with-compat --add-dynamic-module=../ngx_brotli \ | |
--with-cc-opt="-I../boringssl/include" \ | |
--with-ld-opt="-L../boringssl/build/ssl \ | |
-L../boringssl/build/crypto" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment