Allow nginx to dynamically scale workers

This commit is contained in:
Alex D. 2025-02-22 19:36:16 +00:00
parent 461cd221b7
commit e13acbd857
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
2 changed files with 7 additions and 6 deletions

View File

@ -3,10 +3,10 @@
. ../APKBUILD-config.template
pkgver=2024.03.30.01
pkgrel=0
pkgrel=3
depends="nginx-mod-http-zip nginx-mod-http-dav-ext nginx-mod-http-fancyindex"
checkdepends="nginx"
#options=""
subpackages="
$pkgname-seedbox
$pkgname-alpine
@ -51,7 +51,7 @@ check() {
}
sha512sums="
cb0c4af772feda0b970c69186a5ab2d264ed8a15b6b8fc4e7b50980bc7e054f7af8696a43422a9ef62699276aa6a01c93fa965f9438e0c1d9cfd238c30a9d7f5 main.conf
8d7cefc61d75adcf76814aac5222543befb806f4df4c97edebc99d0585aa234aa988b427878cf6c4ee562fd84478d4fed9099d51d1bb58abde60e7650409c5c2 main.conf
59c9dbf6e3239e64c2403c09ddadce14e5ee0a2536b15e906cfd35834a7ef1c7a7a0f47492298592b5b6a97e86800da9ba6f0f04a52152b7a3f671e552da97dd seedbox.conf
5ae68165edab56f41e51ad5b608a29121db878aed0309882927207d4ea9ec5e505a78b194bc8df8f943259130300edd4aa49b2e23a4ee705fa9ea761533fd133 alpine.conf
2657b0bdfc001f94159a8cddc928e666cb20055b3df42dd0ec48146c6952c3c7b3957af52612d35d38199fde76ee0c96cb0ea39ed38e13bcc608088c88dc3a88 homepage.conf

View File

@ -1,13 +1,14 @@
user nginx www-data;
worker_processes auto;
worker_cpu_affinity auto;
# Load modules
load_module "modules/ngx_http_zip_module.so";
load_module "modules/ngx_http_fancyindex_module.so";
load_module "modules/ngx_http_dav_ext_module.so";
events {
worker_connections 1024;
}
events {}
http {
access_log syslog:server=127.0.0.1;