Tune PHP again (uncommited changes from long ago)

This commit is contained in:
Oliver Hattshire 2025-06-16 22:02:29 -04:00
parent 3719b355f7
commit e3fffa522a
3 changed files with 14 additions and 1 deletions

View file

@ -10,6 +10,9 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
## Increase memory limits
COPY upload.ini /usr/local/etc/php/conf.d/upload.ini
## Tune PHP-FPM Children
COPY fpmtune.ini /usr/local/etc/php/conf.d/fpmtune.ini
# Remove residual gcc
RUN apt remove gcc -y && apt autoremove -y \
&& rm -rf /var/lib/apt/lists/*

5
images/nc/fpmtune.ini Normal file
View file

@ -0,0 +1,5 @@
pm.max_children=51
pm.start_servers=12
pm.min_spare_servers=12
pm.max_spare_servers=38

View file

@ -29,7 +29,8 @@ http {
# Prevent nginx HTTP Server Detection
server_tokens off;
keepalive_timeout 65;
# Old value: 65 ! didnt work
keepalive_timeout 256;
gzip on;
@ -151,6 +152,7 @@ http {
#fastcgi_param HTTPS on;
fastcgi_read_timeout 3600;
fastcgi_send_timeout 3600;
proxy_read_timeout 3600;
proxy_connect_timeout 3600;
@ -182,5 +184,8 @@ http {
location / {
try_files $uri $uri/ /index.php$request_uri;
}
location /simliveradio {
proxy_pass http://simliveradio.stream.laut.fm/simliveradio;
}
}
}