diff --git a/caddy/Caddyfile b/caddy/Caddyfile index f57f413..4dab2ba 100644 --- a/caddy/Caddyfile +++ b/caddy/Caddyfile @@ -12,6 +12,15 @@ am-d-model.eu { } invenio.am-d-model.eu { + request_body { + max_size 1TB + } + timeouts { + read_body 1h + read_header 10s + write 1h + write 1h + } root /static/* /opt/invenio/var/instance/static try_files {path} {path}/ /index.html reverse_proxy invenio-rdm:5000 diff --git a/docker-compose.yaml b/docker-compose.yaml index f6376d7..45a6e07 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -136,7 +136,7 @@ services: - INVENIO_RDM_DEFAULT_CITATION_STYLE = "vancouver" # Custom gunicorn config settings - - GUNICORN_CMD_ARGS=--timeout 43200 --graceful-timeout 600 + - GUNICORN_CMD_ARGS=--worker_connections=300 --timeout 43200 --graceful-timeout 600 depends_on: search: condition: service_started diff --git a/invenio/invenio.cfg b/invenio/invenio.cfg index 75e376b..977b4e6 100644 --- a/invenio/invenio.cfg +++ b/invenio/invenio.cfg @@ -199,9 +199,17 @@ INSTANCE_THEME_FILE = "./less/theme.less" # Invenio-Files-Rest # ================== FILES_REST_STORAGE_FACTORY = "invenio_s3.s3fs_storage_factory" -FILES_REST_MAX_CONTENT_LENGTH = 50 * 1024 * 1024 * 1024 # 50GB -FILES_REST_MULTIPART_CHUNKSIZE_MIN = 5 * 1024 * 1024 # 5MB minimum -FILES_REST_MULTIPART_MAX_PARTS = 10000 # Allow more parts for large files +FILES_REST_MAX_CONTENT_LENGTH = 1024**4 # 1TB +FILES_REST_MULTIPART_CHUNKSIZE_MIN = 5 * 1024**2 # 5MB minimum +FILES_REST_MULTIPART_MAX_PARTS = 250 # Allow more parts for large files +RDM_FILES_DEFAULT_MAX_FILE_SIZE = 1024**4 # 1TB +RDM_FILES_DEFAULT_QUOTA_SIZE = 1024**4 # 1TB +FILES_REST_DEFAULT_MAX_FILE_SIZE = 1024**4 # 1TB +FILES_REST_DEFAULT_QUOTA_SIZE = 1024**4 # 1TB +APP_RDM_DEPOSIT_FORM_QUOTA = { + "maxFiles": 250, + "maxStorage": 1024**4, # 1TB +} # Invenio-S3 # ==========