1919from settings_library .utils_logging import MixinLoggingSettings
2020
2121from .._meta import API_VERSION , API_VTAG , APP_NAME
22- from ..constants import API_ROOT
2322
2423
2524class ApplicationSettings (BaseCustomSettings , MixinLoggingSettings ):
@@ -119,21 +118,6 @@ class ApplicationSettings(BaseCustomSettings, MixinLoggingSettings):
119118 DIRECTOR_POSTGRES : PostgresSettings = Field (auto_default_from_env = True )
120119 STORAGE_ENDPOINT : AnyUrl = Field (...)
121120
122- # TODO: this needs some code changes
123- # SERVICES_DEFAULT_ENVS: dict[str, str] = {
124- # "POSTGRES_ENDPOINT": os.environ.get(
125- # "POSTGRES_ENDPOINT", "undefined postgres endpoint"
126- # ),
127- # "POSTGRES_USER": os.environ.get("POSTGRES_USER", "undefined postgres user"),
128- # "POSTGRES_PASSWORD": os.environ.get(
129- # "POSTGRES_PASSWORD", "undefined postgres password"
130- # ),
131- # "POSTGRES_DB": os.environ.get("POSTGRES_DB", "undefined postgres db"),
132- # "STORAGE_ENDPOINT": os.environ.get(
133- # "STORAGE_ENDPOINT", "undefined storage endpoint"
134- # ),
135- # }
136-
137121 DIRECTOR_PUBLISHED_HOST_NAME : str = Field (
138122 default = "" , env = ["DIRECTOR_PUBLISHED_HOST_NAME" , "PUBLISHED_HOST_NAME" ]
139123 )
@@ -143,11 +127,6 @@ class ApplicationSettings(BaseCustomSettings, MixinLoggingSettings):
143127 env = ["DIRECTOR_SWARM_STACK_NAME" , "SWARM_STACK_NAME" ],
144128 )
145129
146- # used when in devel mode vs release mode
147- DIRECTOR_NODE_SCHEMA_LOCATION : str = Field (
148- default = f"{ API_ROOT } /{ API_VERSION } /schemas/node-meta-v0.0.1.json" ,
149- env = ["DIRECTOR_NODE_SCHEMA_LOCATION" , "NODE_SCHEMA_LOCATION" ],
150- )
151130 # used to find the right network name
152131 DIRECTOR_SIMCORE_SERVICES_NETWORK_NAME : str | None = Field (
153132 default = None ,
0 commit comments