Skip to content

Commit

Permalink
Automatic assigment of "worker_processes" in nginx (#1252)
Browse files Browse the repository at this point in the history
* Upgrade of nginx config by default reference
  • Loading branch information
rex2630 committed May 10, 2024
1 parent fc3f0d8 commit cf18140
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
3 changes: 2 additions & 1 deletion lib/configfiles/bookworm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,9 @@ include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
<file name="/etc/nginx/nginx.conf" backup="true">
<content><![CDATA[
user www-data;
worker_processes 4;
worker_processes auto;
pid /var/run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 768;
Expand Down
3 changes: 2 additions & 1 deletion lib/configfiles/bullseye.xml
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,9 @@ include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
<file name="/etc/nginx/nginx.conf" backup="true">
<content><![CDATA[
user www-data;
worker_processes 4;
worker_processes auto;
pid /var/run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 768;
Expand Down
3 changes: 2 additions & 1 deletion lib/configfiles/focal.xml
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,9 @@ include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
<file name="/etc/nginx/nginx.conf" backup="true">
<content><![CDATA[
user www-data;
worker_processes 4;
worker_processes auto;
pid /var/run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 768;
Expand Down
3 changes: 2 additions & 1 deletion lib/configfiles/jammy.xml
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,9 @@ include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
<file name="/etc/nginx/nginx.conf" backup="true">
<content><![CDATA[
user www-data;
worker_processes 4;
worker_processes auto;
pid /var/run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 768;
Expand Down
5 changes: 3 additions & 2 deletions lib/configfiles/noble.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<froxlor>
<distribution name="Ubuntu" codename="noble"
<distribution name="Ubuntu" codename="Noble"
version="24.04" defaulteditor="/bin/nano">
<!-- OS defaults to be loaded on installation -->
<defaults>
Expand Down Expand Up @@ -167,8 +167,9 @@ include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
<file name="/etc/nginx/nginx.conf" backup="true">
<content><![CDATA[
user www-data;
worker_processes 4;
worker_processes auto;
pid /var/run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 768;
Expand Down

0 comments on commit cf18140

Please sign in to comment.