Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ The script might work on ARM-based architectures, but it's only being regularly
- [Cloudflare's patch for HTTP/3](https://blog.cloudflare.com/experiment-with-http-3-using-nginx-and-quiche/) with [Quiche](https://github.com/cloudflare/quiche) and [BoringSSL](https://github.com/google/boringssl).
- [Cloudflare's TLS Dynamic Record Resizing patch](https://blog.cloudflare.com/optimizing-tls-over-tcp-to-reduce-latency/) maintained by [nginx-modules](https://github.com/nginx-modules/ngx_http_tls_dyn_size).
- [Cloudflare's HTTP/2 HPACK encoding patch](https://blog.cloudflare.com/hpack-the-silent-killer-feature-of-http-2/) ([original patch](https://github.com/cloudflare/sslconfig/blob/master/patches/nginx_1.13.1_http2_hpack.patch), [fixed patch](https://github.com/hakasenyang/openssl-patch/blob/master/nginx_hpack_push_1.15.3.patch))
- [Nchan](https://github.com/slact/nchan): Nchan - flexible pubsub for the modern web
- [ngx_pagespeed](https://github.com/pagespeed/ngx_pagespeed): Google performance module
- [ngx_brotli](https://github.com/google/ngx_brotli): Brotli compression algorithm
- [ngx_headers_more](https://github.com/openresty/headers-more-nginx-module): Custom HTTP headers
Expand Down
26 changes: 26 additions & 0 deletions conf/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,3 +155,29 @@ testcookie_redirect_via_refresh off;
Which turns off the html part.

See <https://github.com/kyprizel/testcookie-nginx-module#testcookie_redirect_via_refresh>


## Nchan

See https://nchan.io/#getting-started

Example configuration in nginx.conf:

```
#...
http {
server {
#...

location = /sub {
nchan_subscriber;
nchan_channel_id $arg_id;
}

location = /pub {
nchan_publisher;
nchan_channel_id $arg_id;
}
}
}
```
12 changes: 12 additions & 0 deletions nginx-autoinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ if [[ $HEADLESS == "y" ]]; then
WEBDAV=${WEBDAV:-n}
VTS=${VTS:-n}
RTMP=${RTMP:-n}
NCHAN=${NCHAN:-n}
TESTCOOKIE=${TESTCOOKIE:-n}
HTTP3=${HTTP3:-n}
MODSEC=${MODSEC:-n}
Expand Down Expand Up @@ -175,6 +176,9 @@ case $OPTION in
while [[ $RTMP != "y" && $RTMP != "n" ]]; do
read -rp " nginx RTMP [y/n]: " -e -i n RTMP
done
while [[ $NCHAN != "y" && $NCHAN != "n" ]]; do
read -rp " nginx NCHAN [y/n]: " -e -i n NCHAN
done
while [[ $TESTCOOKIE != "y" && $TESTCOOKIE != "n" ]]; do
read -rp " nginx testcookie [y/n]: " -e -i n TESTCOOKIE
done
Expand Down Expand Up @@ -596,6 +600,14 @@ case $OPTION in
echo --add-module=/usr/local/src/nginx/modules/nginx-rtmp-module
)
fi

if [[ $NCHAN == 'y' ]]; then
git clone --quiet https://github.com/slact/nchan.git /usr/local/src/nginx/modules/nginx-nchan-module
NGINX_MODULES=$(
echo "$NGINX_MODULES"
echo --add-module=/usr/local/src/nginx/modules/nginx-nchan-module
)
fi

if [[ $TESTCOOKIE == 'y' ]]; then
git clone --depth 1 --quiet https://github.com/kyprizel/testcookie-nginx-module.git /usr/local/src/nginx/modules/testcookie-nginx-module
Expand Down