Migrate to Alpine #5

Merged
Fascinated merged 21 commits from development into master 2023-07-07 23:54:10 +00:00
2 changed files with 4 additions and 1 deletions
Showing only changes of commit ade90e81e9 - Show all commits

View File

@ -44,7 +44,7 @@ http {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/run/php/php8.1-fpm.sock;
fastcgi_pass unix:/run/php/php.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_index index.php;

View File

@ -16,6 +16,9 @@ fi
echo "env[DOCKER] = true" >> /etc/php81/php-fpm.d/www.conf
echo "clear_env = no" >> /etc/php81/php-fpm.d/www.conf
# Set php-fpm to listen on socket
RUN sed -i 's/^listen = .*/listen = \/run\/php\/php.sock/' /etc/php8.1/php-fpm.d/www.conf
echo "Setting permissions for upload script"
chmod 777 /var/www/html/upload.php