Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
backend
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
INJECT
backend
Commits
cb93aad7
There was an error fetching the commit references. Please try again later.
Commit
cb93aad7
authored
8 months ago
by
Martin Juhás
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
INSTALLATION.md
+1
-0
1 addition, 0 deletions
INSTALLATION.md
ttxbackend/settings.py
+3
-0
3 additions, 0 deletions
ttxbackend/settings.py
with
4 additions
and
0 deletions
INSTALLATION.md
+
1
−
0
View file @
cb93aad7
...
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
ttxbackend/settings.py
+
3
−
0
View file @
cb93aad7
...
...
@@ -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
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment