Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeromescuggs/41533872698141f155d821dc7f57e3f1 to your computer and use it in GitHub Desktop.
Save jeromescuggs/41533872698141f155d821dc7f57e3f1 to your computer and use it in GitHub Desktop.
quick QUIC
#!/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