Skip to content

Commit

Permalink
fix - file size limit not work on plane.settings.production (#3160)
Browse files Browse the repository at this point in the history
* fix - file size limit not work on plane.settings.production

* fix - file size limit not work on plane.settings.production

* fix - file size limit not work on plane.settings.production, move to common.py

---------

Co-authored-by: luanduongtel4vn <[email protected]>
Co-authored-by: sriram veeraghanta <[email protected]>
  • Loading branch information
3 people committed Dec 22, 2023
1 parent 6fab75f commit 9c65657
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apiserver/plane/settings/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,9 @@

# Sentry Settings
# Enable Sentry Settings
if bool(os.environ.get("SENTRY_DSN", False)) and os.environ.get("SENTRY_DSN").startswith("https://"):
if bool(os.environ.get("SENTRY_DSN", False)) and os.environ.get(
"SENTRY_DSN"
).startswith("https://"):
sentry_sdk.init(
dsn=os.environ.get("SENTRY_DSN", ""),
integrations=[
Expand Down Expand Up @@ -334,3 +336,5 @@

# Skip environment variable configuration
SKIP_ENV_VAR = os.environ.get("SKIP_ENV_VAR", "1") == "1"

DATA_UPLOAD_MAX_MEMORY_SIZE = int(os.environ.get("FILE_SIZE_LIMIT", 5242880))

0 comments on commit 9c65657

Please sign in to comment.