Skip to content
This repository has been archived by the owner on Feb 4, 2025. It is now read-only.

Allow attachments with bigger size (fixes request entity too large) #6

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ RUN set -e \
&& rm -rf cypht-temp \
&& apk del .build-deps \
&& cd ${CYPHT_DEST} \
&& composer install
&& composer install \
&& echo "post_max_size = 80M" >> /usr/local/etc/php/php.ini \
&& echo "upload_max_filesize = 80M" >> /usr/local/etc/php/php.ini

COPY nginx.conf /etc/nginx/nginx.conf
COPY supervisord.conf /etc/supervisord.conf
Expand Down
4 changes: 4 additions & 0 deletions image/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,10 @@ attachment_dir=$(sed -n 's/attachment_dir=//p' ${CYPHT_CONFIG_FILE})
mkdir -p ${attachment_dir}
chown www-data:www-data ${attachment_dir}

# Nginx Attachment Location
mkdir -p /var/tmp/nginx
chown www-data:www-data /var/tmp/nginx

# Application Data Location - create directory
app_data_dir=$(sed -n 's/app_data_dir=//p' ${CYPHT_CONFIG_FILE})
mkdir -p ${app_data_dir}
Expand Down
1 change: 1 addition & 0 deletions image/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ http {
server_name localhost;
index index.php;
root /var/www;
client_max_body_size 80M;
location / {
try_files $uri /index.php$is_args$args;
}
Expand Down