Skip to content

Commit c22fedf

Browse files
committed
updated: dependencies, FreeNGINX release 1.27.5 and OpenSSL 3.5 with QUIC support
1 parent 07050c1 commit c22fedf

File tree

4 files changed

+50
-49
lines changed

4 files changed

+50
-49
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
env:
1111
REGISTRY: ghcr.io
1212
IMAGE_NAME: ${{ github.repository }}
13-
APP_VERSION: 1.27.4
13+
APP_VERSION: 1.27.5
1414

1515
jobs:
1616
build:
@@ -30,7 +30,7 @@ jobs:
3030
- name: Install cosign🔒
3131
uses: sigstore/cosign-installer@v3.8.1
3232
with:
33-
cosign-release: "v2.4.3"
33+
cosign-release: "v2.5.0"
3434

3535
- name: Setup Docker buildx🛠️
3636
uses: docker/setup-buildx-action@v3.10.0

Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
ARG BASE_VERSION=3.21.3
22
ARG BASE_HASH=a8560b36e8b8210634f77d9f7f9efd7ffa463e380b75e2e74aff4511df3ef88c
33
FROM docker.io/library/alpine:${BASE_VERSION}@sha256:${BASE_HASH} AS builder
4-
ARG OPENSSL_VERSION=openssl-3.4.1
5-
ARG APP_VERSION=release-1.27.4
4+
ARG OPENSSL_VERSION=openssl-3.5.0
5+
ARG APP_VERSION=release-1.27.5
66
ARG NJS_VERSION=0.8.9
77
ARG PCRE_VERSION=pcre2-10.45
88
ARG ZLIB_VERSION=v1.3.1
@@ -59,7 +59,7 @@ RUN set -ex \
5959
--with-openssl-opt=no-ssl3 \
6060
--with-openssl-opt=no-shared \
6161
--with-openssl-opt=no-weak-ssl-ciphers \
62-
--with-openssl-opt=no-tls-deprecated-ec \
62+
--with-openssl-opt=enable-quic \
6363
--with-pcre=/tmp/pcre2 \
6464
--with-zlib=/tmp/zlib \
6565
--with-cpu-opt="generic" \
@@ -95,7 +95,6 @@ RUN set -ex \
9595
--with-ld-opt="-Wl,-z,now" \
9696
--with-ld-opt="-pie" \
9797
--with-ld-opt="-Wl,--gc-sections" \
98-
--with-file-aio \
9998
--with-compat \
10099
--with-pcre-jit \
101100
--with-threads \

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Distroless FreeNGINX with HTTP/3 and QUIC support🚀
22

33
[![Build and push image📦](https://github.com/ammnt/freenginx/actions/workflows/build.yml/badge.svg)](https://github.com/ammnt/freenginx/actions/workflows/build.yml)
4-
![version](https://img.shields.io/badge/version-1.27.4-blue)
4+
![version](https://img.shields.io/badge/version-1.27.5-blue)
55
[![GitHub issues open](https://img.shields.io/github/issues/ammnt/freenginx.svg)](https://github.com/ammnt/freenginx/issues)
66
![GitHub Maintained](https://img.shields.io/badge/open%20source-yes-orange)
77
![GitHub Maintained](https://img.shields.io/badge/maintained-yes-yellow)

freenginx_http3.conf

Lines changed: 44 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This is an example of a configuration file for enabling QUIC and HTTP3. Further configuration is required.
1+
# This is an example of a configuration file for enabling QUIC, HTTP3 and "A+" SSL tests rating. Further configuration is required.
22
worker_processes auto;
33
worker_rlimit_nofile 65536;
44
pid /tmp/freenginx.pid;
@@ -17,14 +17,24 @@ http {
1717
aio threads;
1818
tcp_nopush on;
1919
tcp_nodelay on;
20-
reset_timedout_connection on;
21-
send_timeout 2;
22-
client_body_timeout 60;
23-
client_body_buffer_size 10M;
24-
client_max_body_size 10M;
25-
keepalive_timeout 60;
20+
reset_timedout_connection off;
21+
send_timeout 60s;
22+
client_body_timeout 120s;
23+
client_body_buffer_size 16M;
24+
client_max_body_size 20M;
25+
keepalive_timeout 30s;
2626
server_tokens off;
2727
types_hash_max_size 4096;
28+
proxy_buffering on;
29+
proxy_buffer_size 32k;
30+
proxy_busy_buffers_size 64k;
31+
proxy_buffers 512 8k;
32+
proxy_max_temp_file_size 0;
33+
proxy_intercept_errors on;
34+
proxy_read_timeout 300s;
35+
proxy_connect_timeout 60s;
36+
proxy_send_timeout 60s;
37+
fastcgi_read_timeout 300s;
2838
http2 on;
2939
http3 on;
3040
ssl_early_data on;
@@ -47,6 +57,7 @@ http {
4757
ssl_ocsp on;
4858
ssl_ocsp_cache shared:ocspSSL:60m;
4959
ssl_verify_depth 2;
60+
resolver 1.1.1.1 8.8.8.8 ipv6=off valid=300s;
5061
resolver_timeout 300s;
5162
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;
5263
add_header X-Content-Type-Options nosniff;
@@ -126,45 +137,36 @@ http {
126137
proxy_temp_path /tmp/proxy_temp_path;
127138
fastcgi_temp_path /tmp/fastcgi_temp;
128139

129-
proxy_buffering on;
130-
proxy_buffer_size 16k;
131-
proxy_busy_buffers_size 24k;
132-
proxy_buffers 384 4k;
133-
proxy_max_temp_file_size 0;
134-
135140
server {
136-
listen 8080 default_server fastopen=256;
137-
listen [::]:8080 default_server fastopen=256;
138-
listen 8443 default_server quic reuseport;
139-
listen [::]:8443 default_server quic reuseport;
140-
listen 8443 default_server ssl fastopen=256;
141-
listen [::]:8443 default_server ssl fastopen=256;
142-
server_name test.example.com;
141+
listen 8080 default_server fastopen=256;
142+
listen 8443 default_server quic reuseport;
143+
listen 8443 default_server ssl fastopen=256;
144+
server_name test.example.com;
143145

144-
if ($scheme = http) {
145-
return 308 https://test.example.com$request_uri;
146-
}
147-
if ($host = 'www.test.example.com') {
148-
rewrite ^/(.*)$ https://test.example.com/$1 permanent;
149-
}
150-
if ($host != 'test.example.com') {
151-
return 308 https://test.example.com$request_uri;
152-
}
153-
if ($request_method !~ ^(GET|POST|PUT)$) {
154-
return '405';
155-
}
146+
if ($scheme = http) {
147+
return 308 https://test.example.com$request_uri;
148+
}
149+
if ($host = 'www.test.example.com') {
150+
rewrite ^/(.*)$ https://test.example.com/$1 permanent;
151+
}
152+
if ($host != 'test.example.com') {
153+
return 308 https://test.example.com$request_uri;
154+
}
155+
if ($request_method !~ ^(GET|POST|PUT)$) {
156+
return '405';
157+
}
156158

157-
location / {
158-
root /var/www/html;
159-
index index.html index.htm;
159+
location / {
160+
root /var/www/html;
161+
index index.html index.htm;
160162

161-
limit_except GET POST PUT {
162-
deny all;
163-
}
164-
}
163+
limit_except GET POST PUT {
164+
deny all;
165+
}
166+
}
165167

166-
location /robots.txt {
167-
return 200 "User-agent: *\nDisallow: /\n";
168+
location /robots.txt {
169+
return 200 "User-agent: *\nDisallow: /\n";
170+
}
168171
}
169-
}
170172
}

0 commit comments

Comments
 (0)