Skip to content

Commit fd31b22

Browse files
feat: add DJ_USE_TLS environment variable support
Allow configuring TLS/SSL via environment variable for easier configuration in containerized environments and CI pipelines. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent ae2dc57 commit fd31b22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/datajoint/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ class DatabaseSettings(BaseSettings):
194194
)
195195
port: int | None = Field(default=None, validation_alias="DJ_PORT")
196196
reconnect: bool = True
197-
use_tls: bool | None = None
197+
use_tls: bool | None = Field(default=None, validation_alias="DJ_USE_TLS")
198198

199199
@model_validator(mode="after")
200200
def set_default_port_from_backend(self) -> "DatabaseSettings":

0 commit comments

Comments
 (0)