www/nginx: allow to configure hash for long hostnames (#1220)

* www/nginx: feature: configure hostname hash size / bucket size (advanced)
* www/nginx: add release note
* www/nginx: version bump
* www/nginx: version bump
This commit is contained in:
Fabian Franz BSc
2019-03-05 06:50:56 +01:00
committed by GitHub
parent 0082712ae2
commit 9b938ea01d
5 changed files with 31 additions and 2 deletions
+1 -2
View File
@@ -1,6 +1,5 @@
PLUGIN_NAME= nginx
PLUGIN_VERSION= 1.8
PLUGIN_REVISION= 1
PLUGIN_VERSION= 1.9
PLUGIN_COMMENT= Nginx HTTP server and reverse proxy
PLUGIN_DEPENDS= nginx
PLUGIN_MAINTAINER= franz.fabian.94@gmail.com
+4
View File
@@ -8,6 +8,10 @@ reuse, SSL offload and HTTP media streaming.
Plugin Changelog
================
1.9
* add advanced options to configure hostname hash sizes for long hostnames
1.8
* update lodash to v4.17.11
@@ -27,6 +27,18 @@
<type>text</type>
<help>This content type is sent if the file extension is unknown.</help>
</field>
<field>
<id>nginx.http.server_names_hash_bucket_size</id>
<label>Hash Bucket Size</label>
<type>text</type>
<advanced>true</advanced>
</field>
<field>
<id>nginx.http.server_names_hash_max_size</id>
<label>Server Names Hash Max Size</label>
<type>text</type>
<advanced>true</advanced>
</field>
</subtab>
<subtab id="nginx-general-webgui" description="GUI Settings">
<field>
@@ -29,6 +29,14 @@
<default_type type="TextField">
<Required>N</Required>
</default_type>
<server_names_hash_bucket_size type="IntegerField">
<Required>N</Required>
<MinimumValue>1</MinimumValue>
</server_names_hash_bucket_size>
<server_names_hash_max_size type="IntegerField">
<Required>N</Required>
<MinimumValue>1</MinimumValue>
</server_names_hash_max_size>
</http>
<userlist type="ArrayField">
@@ -29,6 +29,12 @@ default_type {{ OPNsense.Nginx.http.default_type }};
{% else %}
default_type application/octet-stream;
{% endif %}
{% if OPNsense.Nginx.http.server_names_hash_max_size is defined and OPNsense.Nginx.http.server_names_hash_max_size != '' %}
server_names_hash_max_size {{ OPNsense.Nginx.http.server_names_hash_max_size }};
{% endif %}
{% if OPNsense.Nginx.http.server_names_hash_bucket_size is defined and OPNsense.Nginx.http.server_names_hash_bucket_size != '' %}
server_names_hash_bucket_size {{ OPNsense.Nginx.http.server_names_hash_bucket_size }};
{% endif %}
{% if OPNsense.Nginx.http.keepalive_timeout is defined and OPNsense.Nginx.http.keepalive_timeout != '' %}
keepalive_timeout {{ OPNsense.Nginx.http.keepalive_timeout }};
{% endif %}