fix - file size limit not work on plane.settings.production (#3160)
* 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 <hoangluan@tel4vn.com> Co-authored-by: sriram veeraghanta <veeraghanta.sriram@gmail.com>
This commit is contained in:
parent
6fab75f9ab
commit
9c65657a66
1 changed files with 5 additions and 1 deletions
|
|
@ -291,7 +291,9 @@ CELERY_IMPORTS = (
|
||||||
|
|
||||||
# Sentry Settings
|
# Sentry Settings
|
||||||
# Enable 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(
|
sentry_sdk.init(
|
||||||
dsn=os.environ.get("SENTRY_DSN", ""),
|
dsn=os.environ.get("SENTRY_DSN", ""),
|
||||||
integrations=[
|
integrations=[
|
||||||
|
|
@ -334,3 +336,5 @@ INSTANCE_KEY = os.environ.get(
|
||||||
|
|
||||||
# Skip environment variable configuration
|
# Skip environment variable configuration
|
||||||
SKIP_ENV_VAR = os.environ.get("SKIP_ENV_VAR", "1") == "1"
|
SKIP_ENV_VAR = os.environ.get("SKIP_ENV_VAR", "1") == "1"
|
||||||
|
|
||||||
|
DATA_UPLOAD_MAX_MEMORY_SIZE = int(os.environ.get("FILE_SIZE_LIMIT", 5242880))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue