From f0e932544e2279f3befdf2326f67f74c6fe14e45 Mon Sep 17 00:00:00 2001 From: Simon Date: Sat, 8 Mar 2025 18:36:40 +0700 Subject: [PATCH] remove cast env var --- backend/common/src/env_settings.py | 2 -- backend/config/management/commands/ta_envcheck.py | 9 --------- 2 files changed, 11 deletions(-) diff --git a/backend/common/src/env_settings.py b/backend/common/src/env_settings.py index 7335682e..6133aaa2 100644 --- a/backend/common/src/env_settings.py +++ b/backend/common/src/env_settings.py @@ -24,7 +24,6 @@ class EnvironmentSettings: HOST_UID: int = int(environ.get("HOST_UID", False)) HOST_GID: int = int(environ.get("HOST_GID", False)) - ENABLE_CAST: bool = bool(environ.get("ENABLE_CAST")) DISABLE_STATIC_AUTH: bool = bool(environ.get("DISABLE_STATIC_AUTH")) TZ: str = str(environ.get("TZ", "UTC")) TA_PORT: int = int(environ.get("TA_PORT", False)) @@ -73,7 +72,6 @@ class EnvironmentSettings: HOST_UID: {self.HOST_UID} HOST_GID: {self.HOST_GID} TZ: {self.TZ} - ENABLE_CAST: {self.ENABLE_CAST} DISABLE_STATIC_AUTH: {self.DISABLE_STATIC_AUTH} TA_PORT: {self.TA_PORT} TA_BACKEND_PORT: {self.TA_BACKEND_PORT} diff --git a/backend/config/management/commands/ta_envcheck.py b/backend/config/management/commands/ta_envcheck.py index a2a185aa..0ff296d9 100644 --- a/backend/config/management/commands/ta_envcheck.py +++ b/backend/config/management/commands/ta_envcheck.py @@ -85,7 +85,6 @@ class Command(BaseCommand): self._elastic_user_overwrite() self._ta_port_overwrite() self._ta_backend_port_overwrite() - self._enable_cast_overwrite() self._create_superuser() def _expected_vars(self): @@ -167,14 +166,6 @@ class Command(BaseCommand): self.stdout.write(self.style.SUCCESS(message)) - def _enable_cast_overwrite(self): - """enable cast env var""" - self.stdout.write("[6] check ENABLE_CAST overwrite") - overwrite = EnvironmentSettings.ENABLE_CAST - if not overwrite: - self.stdout.write(self.style.SUCCESS(" ENABLE_CAST is not set")) - return - def _disable_static_auth(self): """cast workaround, remove auth for static files in nginx""" self.stdout.write("[7] check DISABLE_STATIC_AUTH overwrite")