remove cast env var

This commit is contained in:
Simon
2025-03-08 18:36:40 +07:00
parent 7229cf1930
commit f0e932544e
2 changed files with 0 additions and 11 deletions

View File

@@ -24,7 +24,6 @@ class EnvironmentSettings:
HOST_UID: int = int(environ.get("HOST_UID", False)) HOST_UID: int = int(environ.get("HOST_UID", False))
HOST_GID: int = int(environ.get("HOST_GID", 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")) DISABLE_STATIC_AUTH: bool = bool(environ.get("DISABLE_STATIC_AUTH"))
TZ: str = str(environ.get("TZ", "UTC")) TZ: str = str(environ.get("TZ", "UTC"))
TA_PORT: int = int(environ.get("TA_PORT", False)) TA_PORT: int = int(environ.get("TA_PORT", False))
@@ -73,7 +72,6 @@ class EnvironmentSettings:
HOST_UID: {self.HOST_UID} HOST_UID: {self.HOST_UID}
HOST_GID: {self.HOST_GID} HOST_GID: {self.HOST_GID}
TZ: {self.TZ} TZ: {self.TZ}
ENABLE_CAST: {self.ENABLE_CAST}
DISABLE_STATIC_AUTH: {self.DISABLE_STATIC_AUTH} DISABLE_STATIC_AUTH: {self.DISABLE_STATIC_AUTH}
TA_PORT: {self.TA_PORT} TA_PORT: {self.TA_PORT}
TA_BACKEND_PORT: {self.TA_BACKEND_PORT} TA_BACKEND_PORT: {self.TA_BACKEND_PORT}

View File

@@ -85,7 +85,6 @@ class Command(BaseCommand):
self._elastic_user_overwrite() self._elastic_user_overwrite()
self._ta_port_overwrite() self._ta_port_overwrite()
self._ta_backend_port_overwrite() self._ta_backend_port_overwrite()
self._enable_cast_overwrite()
self._create_superuser() self._create_superuser()
def _expected_vars(self): def _expected_vars(self):
@@ -167,14 +166,6 @@ class Command(BaseCommand):
self.stdout.write(self.style.SUCCESS(message)) 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): def _disable_static_auth(self):
"""cast workaround, remove auth for static files in nginx""" """cast workaround, remove auth for static files in nginx"""
self.stdout.write("[7] check DISABLE_STATIC_AUTH overwrite") self.stdout.write("[7] check DISABLE_STATIC_AUTH overwrite")