Skip to content

Commit 47535e5

Browse files
committed
Add configurable upload size limits for plugins upload and RPC2
1 parent 4d30712 commit 47535e5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

qgis-app/settings_docker.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,10 @@
169169
# Default primary key type
170170
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
171171

172+
PLUGIN_MAX_UPLOAD_SIZE = os.environ.get("PLUGIN_MAX_UPLOAD_SIZE", 25000000) # Default is 25MB
173+
174+
# RCP2 Max upload size
175+
DATA_UPLOAD_MAX_MEMORY_SIZE = PLUGIN_MAX_UPLOAD_SIZE # same as max allowed plugin size
172176

173177
# Sentry
174178
SENTRY_DSN = os.environ.get("SENTRY_DSN", "")

0 commit comments

Comments
 (0)