mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
Add ability to change worker_processes and worker_connections from GUI (#1621)
* Add Worker Processes and Worker Connections * Add Worker Processes and Worker Connections * Add Worker Processes and Worker Connections * Tweak help text Co-Authored-By: Fabian Franz BSc <fabianfrz@users.noreply.github.com> * Add minimum value and change version * Remove if/else around worker connections and worker processes Co-authored-by: Fabian Franz BSc <fabianfrz@users.noreply.github.com>
This commit is contained in:
committed by
Fabian Franz BSc
co-authored by
Fabian Franz BSc
parent
6c3d6f2152
commit
4654fad4ed
@@ -9,6 +9,20 @@
|
||||
</field>
|
||||
</subtab>
|
||||
<subtab id="nginx-http-global" description="Global HTTP Settings">
|
||||
<field>
|
||||
<id>nginx.http.workerprocesses</id>
|
||||
<label>Worker Processes</label>
|
||||
<type>text</type>
|
||||
<help>Set the number of worker processes to run.</help>
|
||||
<advanced>true</advanced>
|
||||
</field>
|
||||
<field>
|
||||
<id>nginx.http.workerconnections</id>
|
||||
<label>Worker Connections</label>
|
||||
<type>text</type>
|
||||
<help>Set the maximum connections of each worker.</help>
|
||||
<advanced>true</advanced>
|
||||
</field>
|
||||
<field>
|
||||
<id>nginx.http.enabled</id>
|
||||
<label>Enable sendfile</label>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<model>
|
||||
<mount>//OPNsense/Nginx</mount>
|
||||
<version>1.15.0</version>
|
||||
<version>1.17.0</version>
|
||||
<description>nginx web server, reverse proxy and waf</description>
|
||||
<items>
|
||||
<general>
|
||||
@@ -18,6 +18,16 @@
|
||||
</webgui>
|
||||
|
||||
<http>
|
||||
<workerprocesses type="IntegerField">
|
||||
<default>1</default>
|
||||
<MinimumValue>1</MinimumValue>
|
||||
<Required>Y</Required>
|
||||
</workerprocesses>
|
||||
<workerconnections type="IntegerField">
|
||||
<default>1024</default>
|
||||
<MinimumValue>1</MinimumValue>
|
||||
<Required>Y</Required>
|
||||
</workerconnections>
|
||||
<sendfile type="BooleanField">
|
||||
<default>0</default>
|
||||
<Required>N</Required>
|
||||
|
||||
@@ -7,12 +7,12 @@ load_module /usr/local/libexec/nginx/ngx_http_brotli_static_module.so;
|
||||
load_module /usr/local/libexec/nginx/ngx_http_js_module.so;
|
||||
|
||||
user www staff;
|
||||
worker_processes 1;
|
||||
worker_processes {{ OPNsense.Nginx.http.workerprocesses }};
|
||||
|
||||
error_log /var/log/nginx/error.log;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
worker_connections {{ OPNsense.Nginx.http.workerconnections }};
|
||||
}
|
||||
|
||||
http {
|
||||
|
||||
Reference in New Issue
Block a user