barrel: Increase max upload size to 250 MB

This commit increases the maximal php upload size to 250 MB (from the
default of 2).
This commit is contained in:
Tom Wiesing 2020-08-14 10:55:39 +02:00
parent a2612e5ee6
commit 7cbfaf99d5
No known key found for this signature in database
GPG key ID: DC1F29F2BC78AB15
4 changed files with 18 additions and 3 deletions

View file

@ -60,15 +60,13 @@ ADD patch/easyrdf.patch /patch/easyrdf.patch
# Add wisski configuration
ADD conf/ports.conf /etc/apache2/ports.conf
ADD conf/wisski.conf /etc/apache2/sites-available/wisski.conf
ADD conf/wisski.ini /usr/local/etc/php/conf.d/wisski.ini
RUN a2ensite wisski
# volumes for composer
VOLUME /var/www/.composer
VOLUME /var/www/data
# increase the php memory limit to 4g
RUN echo 'memory_limit=4G' > /usr/local/etc/php/conf.d/memory-limit.ini
# Add and configure the entrypoint
ADD scripts/entrypoint.sh /entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ]

View file

@ -0,0 +1,13 @@
; File Uploads up to 250 MB
; Seems to be reasonable compromise between the default (2MB) and maximum available space
file_uploads = On
upload_max_filesize = 250M
post_max_size = 250M
; Composer uses an absurd amount of memory
; 4GB ought to be enough
memory_limit = 4G
; If execution time turns out to be a problem
; we should uncomment this
; max_execution_time = 600