mirror of
https://github.com/Cian-H/am-d-model.eu.git
synced 2025-12-22 13:41:56 +00:00
Attempt to fix large file uploads
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
# ==========
|
||||
|
||||
Reference in New Issue
Block a user