Compare commits
No commits in common. "a22377a56ff76bbce622f424b8df414987065070" and "559a78ca33feba19d347500432089a48def523e3" have entirely different histories.
a22377a56f
...
559a78ca33
@ -7,8 +7,6 @@ services:
|
|||||||
# build: .
|
# build: .
|
||||||
# image: fascinated/sharex-php-uploader
|
# image: fascinated/sharex-php-uploader
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
|
||||||
- MAX_UPLOAD_SIZE=500M
|
|
||||||
ports:
|
ports:
|
||||||
- 80:80
|
- 80:80
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -1,7 +1,3 @@
|
|||||||
if [[ -z "${MAX_UPLOAD_SIZE}" ]]; then
|
|
||||||
MAX_UPLOAD_SIZE="8M" # Default fallback value
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "Checking if upload script exists in /var/www/html"
|
echo "Checking if upload script exists in /var/www/html"
|
||||||
if [ -f "/var/www/html/upload.php" ]; then
|
if [ -f "/var/www/html/upload.php" ]; then
|
||||||
echo "Upload script was found, ignoring copy."
|
echo "Upload script was found, ignoring copy."
|
||||||
@ -15,13 +11,6 @@ echo "Starting PHP"
|
|||||||
service php8.1-fpm start
|
service php8.1-fpm start
|
||||||
chmod 777 /run/php/php8.1-fpm.sock # I don't know how to fix this properly, but it works.
|
chmod 777 /run/php/php8.1-fpm.sock # I don't know how to fix this properly, but it works.
|
||||||
|
|
||||||
echo "Setting max upload size to ${MAX_UPLOAD_SIZE}"
|
|
||||||
sed -i "s/^upload_max_filesize = .*/upload_max_filesize = ${MAX_UPLOAD_SIZE}/" /etc/php/8.1/fpm/php.ini
|
|
||||||
sed -i "s/^post_max_size = .*/post_max_size = ${MAX_UPLOAD_SIZE}/" /etc/php/8.1/fpm/php.ini
|
|
||||||
|
|
||||||
# Restart php to apply changes
|
|
||||||
service php8.1-fpm restart
|
|
||||||
|
|
||||||
# Start Nginx
|
# Start Nginx
|
||||||
echo "Starting Nginx"
|
echo "Starting Nginx"
|
||||||
nginx -g "daemon off;"
|
nginx -g "daemon off;"
|
Loading…
Reference in New Issue
Block a user