diff options
author | VirtualTam <virtualtam@flibidi.net> | 2016-11-05 20:42:54 +0100 |
---|---|---|
committer | VirtualTam <virtualtam@flibidi.net> | 2016-11-06 00:43:50 +0100 |
commit | 68579ad5c4d1978366c5d2be2ef34da6a3618ef0 (patch) | |
tree | ed3e704e7f7b2d0f1a28434dfe546a43bdee404e /docker/development/Dockerfile | |
parent | b7f8b874bb9f2028c29b1f22f893fabec2836de8 (diff) | |
download | Shaarli-68579ad5c4d1978366c5d2be2ef34da6a3618ef0.tar.gz Shaarli-68579ad5c4d1978366c5d2be2ef34da6a3618ef0.tar.zst Shaarli-68579ad5c4d1978366c5d2be2ef34da6a3618ef0.zip |
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>
Diffstat (limited to 'docker/development/Dockerfile')
-rw-r--r-- | docker/development/Dockerfile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docker/development/Dockerfile b/docker/development/Dockerfile index 0c19b085..d9ef8da7 100644 --- a/docker/development/Dockerfile +++ b/docker/development/Dockerfile | |||
@@ -15,6 +15,8 @@ RUN apt-get update \ | |||
15 | nano \ | 15 | nano \ |
16 | && apt-get clean | 16 | && apt-get clean |
17 | 17 | ||
18 | RUN sed -i 's/post_max_size.*/post_max_size = 10M/' /etc/php5/fpm/php.ini | ||
19 | RUN sed -i 's/upload_max_filesize.*/upload_max_filesize = 10M/' /etc/php5/fpm/php.ini | ||
18 | COPY nginx.conf /etc/nginx/nginx.conf | 20 | COPY nginx.conf /etc/nginx/nginx.conf |
19 | COPY supervised.conf /etc/supervisor/conf.d/supervised.conf | 21 | COPY supervised.conf /etc/supervisor/conf.d/supervised.conf |
20 | 22 | ||