Merge branch 'main' into hotfix/increase-pm_worker

This commit is contained in:
holzi1005 2025-02-28 10:41:43 +01:00
commit d11499928f
3 changed files with 22 additions and 3 deletions

View file

@ -1,3 +0,0 @@
#!/bin/sh
# Test file to check init scripts
uname -a

View file

@ -0,0 +1,19 @@
#!/bin/sh
# Zähler für die Befehle
i=0
# Schleife, um die Befehle aus den Umgebungsvariablen zu lesen
while :; do
# Dynamische Umgebungsvariable aufbauen
cmd_var="STARTUP_COMMAND_$i"
# Überprüfen, ob die Umgebungsvariable gesetzt ist
if [ -n "${!cmd_var}" ]; then
echo "Führe Befehl $i aus: ${!cmd_var}"
eval "${!cmd_var}"
i=$((i + 1)) # Zähler erhöhen
else
break # Schleife beenden, wenn keine weitere Variable gesetzt ist
fi
done

View file

@ -72,6 +72,7 @@ http {
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/run/php-fpm.sock;
fastcgi_param DOCUMENT_ROOT $document_root;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
@ -82,6 +83,8 @@ http {
# Pass the original forwarded_scheme and HTTPS status to the PHP backend
fastcgi_param HTTP_X_FORWARDED_PROTO $forwarded_scheme;
fastcgi_param HTTPS $https if_not_empty;
internal;
}