Skip to content
Snippets Groups Projects
Commit cb93aad7 authored by Martin Juhás's avatar Martin Juhás
Browse files

feat: add INJECT_MAX_UPLOAD_SIZE env variable

No API changes

Closes #242
parent 2274ec53
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,7 @@ Boolean type variables use consider `true` and `yes` as truthy, and `false` and
- `INJECT_DOMAIN`: _string, default=""_ - Domain where yours instance of the INJECT is available.
- `INJECT_SECRET_KEY`: _string_ - Used to provide cryptographic signing. Must be at least 50 long characters string.
- `INJECT_EMAIL_TIMEOUT`: _int, default=10_ - Specifies a timeout in seconds for blocking operations like the connection attempt to SMTP.
- `INJECT_MAX_UPLOAD_SIZE`: _int, default=10MB_ - Specifies the maximum body size of requests, including file uploads.
......
......@@ -205,6 +205,9 @@ LOG_STORAGE = os.path.join(DATA_STORAGE, "logs")
EXPORT_IMPORT_STORAGE = os.path.join(DATA_STORAGE, "export_import")
DB_EXPORT_FILE_NAME = "db.json"
UPDATE_INTERVAL = 10
DATA_UPLOAD_MAX_MEMORY_SIZE = int(
os.environ.get("INJECT_MAX_UPLOAD_SIZE", 10 * 2**20) # 10MB
)
# Use nose to run all tests
TEST_RUNNER = "django_nose.NoseTestSuiteRunner"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment