From 46165c9ad7f4d6ac674e92a29b260f70c8c892a6 Mon Sep 17 00:00:00 2001 From: kulikov-a <36099472+kulikov-a@users.noreply.github.com> Date: Mon, 15 Jul 2024 13:17:15 +0300 Subject: [PATCH] www/nginx: 1.34 (#4092) * server handshakes log opt out * http2 server push have been made obsolete from nginx 1.25.1 (https://nginx.org/en/CHANGES) *) Feature: the "http2" directive, which enables HTTP/2 on a per-server basis; the "http2" parameter of the "listen" directive is now deprecated. *) Change: HTTP/2 server push support has been removed. * 'listen ... http2' directive is deprecated migrate to http2 directive * ver bump and descr --- www/nginx/Makefile | 2 +- www/nginx/pkg-descr | 6 ++++++ .../controllers/OPNsense/Nginx/forms/httpserver.xml | 7 +++++++ .../app/controllers/OPNsense/Nginx/forms/location.xml | 6 ------ .../opnsense/mvc/app/models/OPNsense/Nginx/Nginx.xml | 10 +++++----- .../service/templates/OPNsense/Nginx/http.conf | 6 ++++-- .../service/templates/OPNsense/Nginx/location.conf | 1 - .../service/templates/OPNsense/Nginx/webgui.conf | 4 ++-- 8 files changed, 25 insertions(+), 17 deletions(-) diff --git a/www/nginx/Makefile b/www/nginx/Makefile index 0b76a782f..5309f48ac 100644 --- a/www/nginx/Makefile +++ b/www/nginx/Makefile @@ -1,5 +1,5 @@ PLUGIN_NAME= nginx -PLUGIN_VERSION= 1.33 +PLUGIN_VERSION= 1.34 PLUGIN_COMMENT= Nginx HTTP server and reverse proxy PLUGIN_DEPENDS= nginx PLUGIN_MAINTAINER= franz.fabian.94@gmail.com diff --git a/www/nginx/pkg-descr b/www/nginx/pkg-descr index 661bb49eb..476eb0962 100644 --- a/www/nginx/pkg-descr +++ b/www/nginx/pkg-descr @@ -10,6 +10,12 @@ WWW: https://nginx.org/ Plugin Changelog ================ +1.34 + +* Add the option to not log TLS handshakes +* Remove obsolete http2_push_preload directive +* Migrate from the deprecated 'listen … http2' directive to the 'http2' directive + 1.33 * Add the "resolver" directive support diff --git a/www/nginx/src/opnsense/mvc/app/controllers/OPNsense/Nginx/forms/httpserver.xml b/www/nginx/src/opnsense/mvc/app/controllers/OPNsense/Nginx/forms/httpserver.xml index b3ad13528..33cf1ce52 100644 --- a/www/nginx/src/opnsense/mvc/app/controllers/OPNsense/Nginx/forms/httpserver.xml +++ b/www/nginx/src/opnsense/mvc/app/controllers/OPNsense/Nginx/forms/httpserver.xml @@ -142,6 +142,13 @@ Select Error Log Level. Log levels are listed in the order of increasing verbosity. Setting a certain log level will cause all messages of the specified and more severe log levels to be logged. true + + httpserver.log_handshakes + + checkbox + Log TLS handshakes to fill the User Agent fingerprint database and detect MITM attacks. + true + httpserver.enable_acme_support diff --git a/www/nginx/src/opnsense/mvc/app/controllers/OPNsense/Nginx/forms/location.xml b/www/nginx/src/opnsense/mvc/app/controllers/OPNsense/Nginx/forms/location.xml index 25c998c75..c5ad99827 100644 --- a/www/nginx/src/opnsense/mvc/app/controllers/OPNsense/Nginx/forms/location.xml +++ b/www/nginx/src/opnsense/mvc/app/controllers/OPNsense/Nginx/forms/location.xml @@ -206,12 +206,6 @@ checkbox If the request scheme is not HTTPS, redirect to use HTTPS for this location. - - location.http2_push_preload - - checkbox - If you check this box, you can use the link header to send resources to the client before they are requested. You can boost your performance with this setting. This requires that your application sets the "Link" header correctly. - location.php_enable diff --git a/www/nginx/src/opnsense/mvc/app/models/OPNsense/Nginx/Nginx.xml b/www/nginx/src/opnsense/mvc/app/models/OPNsense/Nginx/Nginx.xml index 81f686682..6921fbacd 100644 --- a/www/nginx/src/opnsense/mvc/app/models/OPNsense/Nginx/Nginx.xml +++ b/www/nginx/src/opnsense/mvc/app/models/OPNsense/Nginx/Nginx.xml @@ -1,6 +1,6 @@ //OPNsense/Nginx - 1.33 + 1.34 nginx web server, reverse proxy and waf @@ -515,10 +515,6 @@ N 1 - - Y - 0 -