diff --git a/www/nginx/pkg-descr b/www/nginx/pkg-descr index d9fd96525..425b52555 100644 --- a/www/nginx/pkg-descr +++ b/www/nginx/pkg-descr @@ -14,6 +14,7 @@ Plugin Changelog * add TCP load balancing [1] * add support for IP based ACLs * add log rotation (contributed by Julius Cesar Camargo [2] +* add support for satisfy, body size limitation * change: allow to disable internal bot protection (contributed by @fzoske) [3] * change: do not save when no change in the list happened to prevent filling the log history * fix: translate a german string in upstream server to english 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 cbcbaf368..5c5c9a4e8 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 @@ -34,6 +34,20 @@ text + + httpserver.max_body_size + + text + true + If the request is larger, it will be rejectet with error 413 (Request Entity Too Large). For example, you can enter 200m. + + + httpserver.body_buffer_size + + text + true + If the request exceeds this size, it will be written to disk. Enter a number and a unit like 1m. + httpserver.certificate @@ -83,7 +97,7 @@ httpserver.disable_bot_protection checkbox - false + true Blocks the request when a possibly bad bot is detected and adds the originating IP to the managed firewall alias for permanent blocking. @@ -93,6 +107,14 @@ If you select an IP ACL, the client can only access this service if it fulfills this requirement. + + httpserver.satisfy + + dropdown + true + + All: All access restrictions must be fulfilled; Any: Any of the access restrictions must be fulfilled. + httpserver.naxsi_extensive_log 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 9334b1377..4072d2665 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 @@ -131,10 +131,26 @@ text Enter the file system root from which the files are served. + + location.max_body_size + + text + true + If the request is larger, it will be rejectet with error 413 (Request Entity Too Large). For example, you can enter 200m. + + + location.body_buffer_size + + text + true + If the request exceeds this size, it will be written to disk. Enter a number and a unit like 1m. + location.index select_multiple + true + Enter a list of file extensions, which are served instead of a directory. It is common to use index.html or index.php here. @@ -168,6 +184,14 @@ If you select an IP ACL, the client can only access this service if it fulfills this requirement. + + location.satisfy + + dropdown + + true + All: All access restrictions must be fulfilled; Any: Any of the access restrictions must be fulfilled. + location.force_https 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 c17b20b4b..270fe1dfc 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 @@ -330,6 +330,16 @@ N Y + + N + /^\d+[kmg]$/i + Enter a number followed by k, m or g. + + + N + /^\d+[kmg]$/i + Enter a number followed by k, m or g. + Y 0 @@ -354,6 +364,13 @@ N N + + + Any + All + + N + @@ -594,6 +611,16 @@ N Y + + N + /^\d+[kmg]$/i + Enter a number followed by k, m or g. + + + N + /^\d+[kmg]$/i + Enter a number followed by k, m or g. +