diff --git a/Seeder/settings/env.py b/Seeder/settings/env.py index 51a2a6ff..b5c6d81e 100755 --- a/Seeder/settings/env.py +++ b/Seeder/settings/env.py @@ -34,6 +34,9 @@ INTERNAL_IPS = os.environ.get('INTERNAL_IPS', '127.0.0.1').split(' ') +FILE_UPLOAD_MAX_MEMORY_SIZE = int(os.environ.get( + 'FILE_UPLOAD_MAX_MEMORY_SIZE', 52428800)) # 50*1024*1024 = 50 MiB + # Database # https://docs.djangoproject.com/en/1.7/ref/settings/#databases # since we use special PostgresSQL fields we cannot simply use any db. diff --git a/ci/nginx.conf b/ci/nginx.conf index 953719b9..91c62005 100644 --- a/ci/nginx.conf +++ b/ci/nginx.conf @@ -5,5 +5,9 @@ server { location /media/ { root /seeder; } - listen 0.0.0.0:80; + + # Increase max upload size to ~50MB + client_max_body_size 53M; + + listen 0.0.0.0:80; }