[extensions-web/workaround/django-selinux: 2/2] settings: limit memory uploads to 5 MB for now




commit c0aabab78804639d3da18701712e01ad71816e03
Author: Yuri Konotopov <ykonotopov gnome org>
Date:   Wed Sep 14 17:06:06 2022 +0400

    settings: limit memory uploads to 5 MB for now
    
    See-Also: https://github.com/django/django/pull/16056
    See-Also: https://code.djangoproject.com/ticket/29027

 sweettooth/settings.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/sweettooth/settings.py b/sweettooth/settings.py
index 3042019..9cfa7fb 100644
--- a/sweettooth/settings.py
+++ b/sweettooth/settings.py
@@ -159,7 +159,8 @@ STATICFILES_DIRS = (
 
 STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.ManifestStaticFilesStorage'
 
-DATA_UPLOAD_MAX_MEMORY_SIZE = int(os.getenv('EGO_MAX_UPLOAD', 20 * 1024 * 1024))
+DATA_UPLOAD_MAX_MEMORY_SIZE = int(os.getenv('EGO_MAX_UPLOAD', 5 * 1024 * 1024))
+FILE_UPLOAD_MAX_MEMORY_SIZE = DATA_UPLOAD_MAX_MEMORY_SIZE
 
 ACCOUNT_ACTIVATION_DAYS = 5
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]