Compare commits

...
5 Commits
Author SHA1 Message Date
yurymuski 26130d1da8 typo fix 2023-09-04 01:10:35 +04:00
yurymuski 23f424b839 add --with-debug 2023-09-04 01:03:07 +04:00
yurymuski c55df02f0d readme upd 2023-09-04 00:41:54 +04:00
yurymuski 2655f98dee change debiam to ubuntu 2023-09-04 00:32:11 +04:00
yurymuski 3cde573afd upd CI, and readme 2023-09-03 23:00:59 +04:00
3 changed files with 12 additions and 8 deletions
+6 -2
View File
@@ -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/
+5 -5
View File
@@ -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
View File
@@ -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;