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

View file

@ -10,6 +10,7 @@ services:
- "443:443"
volumes:
- "vhost:/etc/nginx/vhost.d"
- "./global.conf:/etc/nginx/conf.d/global.conf:ro"
- "htpasswd:/etc/nginx/htpasswd"
- "html:/usr/share/nginx/html"
- "/var/run/docker.sock:/tmp/docker.sock:ro"

View file

@ -0,0 +1,3 @@
# update the max body size to fit with php's configuration.
# should be kept in sync with distillery/resources/compose/barrel/conf/wisski.ini.
client_max_body_size 250m;