From 8aa234adfcebeb75c8a693f4f257ae40341d10b8 Mon Sep 17 00:00:00 2001 From: Viyurz <128215328+Viyurz@users.noreply.github.com> Date: Mon, 12 Feb 2024 13:53:12 +0100 Subject: [PATCH] Send: Change max file size & other options + Add max body size in NGINX. --- nginx-rp/reverse-proxy.conf | 2 ++ send/docker-compose.yaml | 16 +++++++++------- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/nginx-rp/reverse-proxy.conf b/nginx-rp/reverse-proxy.conf index 3cdd1d1..e2244df 100644 --- a/nginx-rp/reverse-proxy.conf +++ b/nginx-rp/reverse-proxy.conf @@ -137,6 +137,8 @@ server { location / { proxy_pass http://send; + client_max_body_size 15G; + proxy_ignore_headers X-Accel-Expires Expires Cache-Control; # WebSocket diff --git a/send/docker-compose.yaml b/send/docker-compose.yaml index d6537d4..b2a5363 100644 --- a/send/docker-compose.yaml +++ b/send/docker-compose.yaml @@ -8,13 +8,15 @@ services: environment: - BASE_URL=https://send.viyurz.fr - REDIS_HOST=send-redis - # To customize upload limits - # - EXPIRE_TIMES_SECONDS=3600,86400,604800,2592000,31536000 - # - DEFAULT_EXPIRE_SECONDS=3600 - # - MAX_EXPIRE_SECONDS=31536000 - # - DOWNLOAD_COUNTS=1,2,5,10,15,25,50,100,1000 - # - MAX_DOWNLOADS=1000 - # - MAX_FILE_SIZE=2684354560 + - FILE_DIR=/uploads + - MAX_FILE_SIZE=16106127360 + # - MAX_ARCHIVES_PER_USER=16 + - EXPIRE_TIMES_SECONDS=3600,86400,604800,2592000 + - DEFAULT_EXPIRE_SECONDS=86400 + - MAX_EXPIRE_SECONDS=2592000 + - DOWNLOAD_COUNTS=1,2,5,10,15,25,50,100,1000,10000 + - DEFAULT_DOWNLOADS=100 + - MAX_DOWNLOADS=10000 ports: - '[::1]:1443:1443' volumes: