mirror of
https://github.com/yurymuski/nginx-http3.git
synced 2026-09-27 14:36:20 +00:00
Compare commits
5
Commits
3bdbdb0e55
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
26130d1da8 | ||
|
|
23f424b839 | ||
|
|
c55df02f0d | ||
|
|
2655f98dee | ||
|
|
3cde573afd |
+6
-2
@@ -1,4 +1,4 @@
|
|||||||
FROM debian:12 AS builder
|
FROM ubuntu:20.04 AS builder
|
||||||
|
|
||||||
LABEL maintainer="Yury Muski <muski.yury@gmail.com>"
|
LABEL maintainer="Yury Muski <muski.yury@gmail.com>"
|
||||||
|
|
||||||
@@ -61,6 +61,7 @@ RUN curl -O https://nginx.org/download/nginx-$NGINX_VERSION.tar.gz && \
|
|||||||
--with-stream_realip_module \
|
--with-stream_realip_module \
|
||||||
--with-stream_ssl_module \
|
--with-stream_ssl_module \
|
||||||
--with-stream_ssl_preread_module \
|
--with-stream_ssl_preread_module \
|
||||||
|
--with-debug \
|
||||||
--add-module=/opt/ngx_brotli \
|
--add-module=/opt/ngx_brotli \
|
||||||
--with-http_v3_module \
|
--with-http_v3_module \
|
||||||
--with-openssl=/opt/quiche/quiche/deps/boringssl \
|
--with-openssl=/opt/quiche/quiche/deps/boringssl \
|
||||||
@@ -69,7 +70,10 @@ RUN curl -O https://nginx.org/download/nginx-$NGINX_VERSION.tar.gz && \
|
|||||||
make && \
|
make && \
|
||||||
make install;
|
make install;
|
||||||
|
|
||||||
FROM debian:12-slim
|
FROM ubuntu:20.04
|
||||||
|
|
||||||
|
RUN apt-get update && \
|
||||||
|
DEBIAN_FRONTEND=noninteractive apt-get install -y libpcre3 libbrotli1
|
||||||
|
|
||||||
COPY --from=builder /usr/sbin/nginx /usr/sbin/
|
COPY --from=builder /usr/sbin/nginx /usr/sbin/
|
||||||
COPY --from=builder /etc/nginx/ /etc/nginx/
|
COPY --from=builder /etc/nginx/ /etc/nginx/
|
||||||
|
|||||||
@@ -3,11 +3,9 @@ Nginx compiled with *BoringSSL* and *quiche* for *HTTP3* support, *Brotli* suppo
|
|||||||
|
|
||||||
## version
|
## version
|
||||||
|
|
||||||
nginx version: nginx/1.19.6 (quiche-ad9d933)
|
nginx version: nginx/1.16.1 (quiche-28ef289f)
|
||||||
quiche 0.18.0
|
quiche 0.18.0
|
||||||
|
|
||||||
Based on ubuntu:20.04, size 109MB
|
|
||||||
|
|
||||||
Link for [quiche + nginx manual](https://github.com/cloudflare/quiche/tree/master/nginx)
|
Link for [quiche + nginx manual](https://github.com/cloudflare/quiche/tree/master/nginx)
|
||||||
|
|
||||||
### usage
|
### usage
|
||||||
@@ -25,9 +23,11 @@ docker run -it --rm --name certbot \
|
|||||||
|
|
||||||
- create nginx.conf like in example
|
- create nginx.conf like in example
|
||||||
|
|
||||||
`docker run --name nginx -d -p 80:80 -p 443:443/tcp -p 443:443/udp -v ${PWD}/temp/letsencrypt/:/opt/nginx/certs/ -v ${PWD}/nginx.conf:/etc/nginx/nginx.conf ymuski/nginx-quic`
|
```sh
|
||||||
|
# NOTE: --privileged needed for setsockopt(SO_TXTIME) access
|
||||||
|
docker run --name nginx --privileged -d -p 80:80 -p 443:443/tcp -p 443:443/udp -v ${PWD}/temp/letsencrypt/:/opt/nginx/certs/ -v ${PWD}/nginx.conf:/etc/nginx/nginx.conf ymuski/nginx-http3
|
||||||
|
```
|
||||||
|
|
||||||
`docker run --name nginx -d -p 80:80 -p 443:443/tcp -p 443:443/udp -v /etc/letsencrypt/:/opt/nginx/certs/ -v /opt/nginx/conf/example.nginx.conf:/etc/nginx/nginx.conf ymuski/nginx-quic`
|
|
||||||
|
|
||||||
### Checking
|
### Checking
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -51,7 +51,7 @@ http {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Add Alt-Svc header to negotiate HTTP/3.
|
# Add Alt-Svc header to negotiate HTTP/3.
|
||||||
add_header alt-svc 'h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400, h3=":443"; ma=86400';
|
add_header alt-svc 'h3=":443"; ma=86400';
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
root html;
|
root html;
|
||||||
|
|||||||
Reference in New Issue
Block a user