Automatic assigment of "worker_processes" in nginx (#1252)

* Upgrade of nginx config by default reference
This commit is contained in:
rex2630
2024-05-10 17:09:25 +02:00
committed by GitHub
parent fc3f0d8ebf
commit cf18140499
5 changed files with 11 additions and 6 deletions

View File

@@ -168,8 +168,9 @@ include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
<file name="/etc/nginx/nginx.conf" backup="true"> <file name="/etc/nginx/nginx.conf" backup="true">
<content><![CDATA[ <content><![CDATA[
user www-data; user www-data;
worker_processes 4; worker_processes auto;
pid /var/run/nginx.pid; pid /var/run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
events { events {
worker_connections 768; worker_connections 768;

View File

@@ -168,8 +168,9 @@ include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
<file name="/etc/nginx/nginx.conf" backup="true"> <file name="/etc/nginx/nginx.conf" backup="true">
<content><![CDATA[ <content><![CDATA[
user www-data; user www-data;
worker_processes 4; worker_processes auto;
pid /var/run/nginx.pid; pid /var/run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
events { events {
worker_connections 768; worker_connections 768;

View File

@@ -167,8 +167,9 @@ include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
<file name="/etc/nginx/nginx.conf" backup="true"> <file name="/etc/nginx/nginx.conf" backup="true">
<content><![CDATA[ <content><![CDATA[
user www-data; user www-data;
worker_processes 4; worker_processes auto;
pid /var/run/nginx.pid; pid /var/run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
events { events {
worker_connections 768; worker_connections 768;

View File

@@ -167,8 +167,9 @@ include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
<file name="/etc/nginx/nginx.conf" backup="true"> <file name="/etc/nginx/nginx.conf" backup="true">
<content><![CDATA[ <content><![CDATA[
user www-data; user www-data;
worker_processes 4; worker_processes auto;
pid /var/run/nginx.pid; pid /var/run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
events { events {
worker_connections 768; worker_connections 768;

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<froxlor> <froxlor>
<distribution name="Ubuntu" codename="noble" <distribution name="Ubuntu" codename="Noble"
version="24.04" defaulteditor="/bin/nano"> version="24.04" defaulteditor="/bin/nano">
<!-- OS defaults to be loaded on installation --> <!-- OS defaults to be loaded on installation -->
<defaults> <defaults>
@@ -167,8 +167,9 @@ include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
<file name="/etc/nginx/nginx.conf" backup="true"> <file name="/etc/nginx/nginx.conf" backup="true">
<content><![CDATA[ <content><![CDATA[
user www-data; user www-data;
worker_processes 4; worker_processes auto;
pid /var/run/nginx.pid; pid /var/run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
events { events {
worker_connections 768; worker_connections 768;