increase pm ressources #1
3 changed files with 22 additions and 3 deletions
|
@ -1,3 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
# Test file to check init scripts
|
|
||||||
uname -a
|
|
19
rootfs/docker-entrypoint-init.d/99-startup-commands.sh
Normal file
19
rootfs/docker-entrypoint-init.d/99-startup-commands.sh
Normal 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
|
|
@ -72,6 +72,7 @@ http {
|
||||||
location ~ [^/]\.php(/|$) {
|
location ~ [^/]\.php(/|$) {
|
||||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||||
fastcgi_pass unix:/run/php-fpm.sock;
|
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_FILENAME $document_root$fastcgi_script_name;
|
||||||
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
|
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
|
||||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||||
|
@ -83,6 +84,8 @@ http {
|
||||||
fastcgi_param HTTP_X_FORWARDED_PROTO $forwarded_scheme;
|
fastcgi_param HTTP_X_FORWARDED_PROTO $forwarded_scheme;
|
||||||
fastcgi_param HTTPS $https if_not_empty;
|
fastcgi_param HTTPS $https if_not_empty;
|
||||||
|
|
||||||
|
internal;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(jpg|jpeg|gif|png|css|js|ico|xml)$ {
|
location ~* \.(jpg|jpeg|gif|png|css|js|ico|xml)$ {
|
||||||
|
|
Loading…
Add table
Reference in a new issue