Send: Change max file size & other options + Add max body size in NGINX.

This commit is contained in:
Viyurz 2024-02-12 13:53:12 +01:00
parent 85f91cb5ec
commit 8aa234adfc
2 changed files with 11 additions and 7 deletions

View file

@ -137,6 +137,8 @@ server {
location / { location / {
proxy_pass http://send; proxy_pass http://send;
client_max_body_size 15G;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control; proxy_ignore_headers X-Accel-Expires Expires Cache-Control;
# WebSocket # WebSocket

View file

@ -8,13 +8,15 @@ services:
environment: environment:
- BASE_URL=https://send.viyurz.fr - BASE_URL=https://send.viyurz.fr
- REDIS_HOST=send-redis - REDIS_HOST=send-redis
# To customize upload limits - FILE_DIR=/uploads
# - EXPIRE_TIMES_SECONDS=3600,86400,604800,2592000,31536000 - MAX_FILE_SIZE=16106127360
# - DEFAULT_EXPIRE_SECONDS=3600 # - MAX_ARCHIVES_PER_USER=16
# - MAX_EXPIRE_SECONDS=31536000 - EXPIRE_TIMES_SECONDS=3600,86400,604800,2592000
# - DOWNLOAD_COUNTS=1,2,5,10,15,25,50,100,1000 - DEFAULT_EXPIRE_SECONDS=86400
# - MAX_DOWNLOADS=1000 - MAX_EXPIRE_SECONDS=2592000
# - MAX_FILE_SIZE=2684354560 - DOWNLOAD_COUNTS=1,2,5,10,15,25,50,100,1000,10000
- DEFAULT_DOWNLOADS=100
- MAX_DOWNLOADS=10000
ports: ports:
- '[::1]:1443:1443' - '[::1]:1443:1443'
volumes: volumes: