Compare commits

...

2 commits

Author SHA1 Message Date
6f57be6b22 fix: add php config
Some checks reported errors
continuous-integration/drone/push Build was killed
2024-08-13 20:07:22 +02:00
69ad000be7 ci: improve readability 2024-08-13 20:05:09 +02:00
5 changed files with 25 additions and 1 deletions

View file

@ -24,7 +24,8 @@ steps:
from_secret: DOCKERHUB_USERNAME
password:
from_secret: DOCKERHUB_PASSWORD
cache_from: "glenux/service-nextcloud:${DRONE_BRANCH/\\//-}_latest"
cache_from:
- "glenux/service-nextcloud:${DRONE_BRANCH/\\//-}_latest"
repo: glenux/service-nextcloud
tags: "${DRONE_COMMIT_SHA:0:8}"
purge: false

View file

@ -88,6 +88,10 @@ RUN echo '[opcache]' > /usr/local/etc/php/conf.d/opcache.ini \
&& echo '[PHP]' > /usr/local/etc/php/conf.d/memory-limit.ini \
&& echo 'memory_limit=1024M' >> /usr/local/etc/php/conf.d/memory-limit.ini
COPY php-uploads.ini /usr/local/etc/php/conf.d/glenux-uploads.ini
COPY php-performance.ini /usr/local/etc/php/conf.d/glenux-performance.ini
COPY php-errors.ini /usr/local/etc/php/conf.d/glenux-errors.ini
##
## CRON SETUP
##

11
php-errors.ini Normal file
View file

@ -0,0 +1,11 @@
error_reporting = E_ALL & ~E_WARNING & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
log_errors = On
## For production
# display_errors = Off
# error_log = /dev/stderr
## For debugging
display_errors = On
error_log = /var/log/php-errors.log

3
php-performance.ini Normal file
View file

@ -0,0 +1,3 @@
; Maximum amount of memory a script may consume (64MB)
memory_limit = 256M
max_input_vars = 3000

5
php-uploads.ini Normal file
View file

@ -0,0 +1,5 @@
file_uploads = On
upload_max_filesize = 128M
post_max_size = 128M
max_execution_time = 1200
max_input_time = 120