Docker: increase maximum file upload size to 10 MiB
Relates to https://github.com/shaarli/Shaarli/issues/681 Changed: - nginx+php-fpm: set maximum upload size to 10 MiB See: - https://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size - https://secure.php.net/manual/en/ini.core.php#ini.post-max-size - https://secure.php.net/manual/en/ini.core.php#ini.upload-max-filesize Signed-off-by: VirtualTam <virtualtam@flibidi.net>
This commit is contained in:
parent
b7f8b874bb
commit
68579ad5c4
7 changed files with 14 additions and 0 deletions
docker/development
|
@ -15,6 +15,8 @@ RUN apt-get update \
|
|||
nano \
|
||||
&& apt-get clean
|
||||
|
||||
RUN sed -i 's/post_max_size.*/post_max_size = 10M/' /etc/php5/fpm/php.ini
|
||||
RUN sed -i 's/upload_max_filesize.*/upload_max_filesize = 10M/' /etc/php5/fpm/php.ini
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
||||
COPY supervised.conf /etc/supervisor/conf.d/supervised.conf
|
||||
|
||||
|
|
|
@ -11,6 +11,8 @@ http {
|
|||
default_type application/octet-stream;
|
||||
keepalive_timeout 20;
|
||||
|
||||
client_max_body_size 10m;
|
||||
|
||||
index index.html index.php;
|
||||
|
||||
server {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue