We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9eeaee9 commit 5bb62eaCopy full SHA for 5bb62ea
packages/settings-library/src/settings_library/docker_api_proxy.py
@@ -13,10 +13,12 @@ class DockerApiProxysettings(BaseCustomSettings):
13
DOCKER_API_PROXY_PORT: PortInt = Field(
14
8888, description="port of the docker-api-proxy service"
15
)
16
+ DOCKER_API_PROXY_SECURE: bool = False
17
18
DOCKER_API_PROXY_USER: str | None = None
19
DOCKER_API_PROXY_PASSWORD: SecretStr | None = None
20
21
@cached_property
22
def base_url(self) -> str:
- return f"http://{self.DOCKER_API_PROXY_HOST}:{self.DOCKER_API_PROXY_PORT}"
23
+ protocl = "https" if self.DOCKER_API_PROXY_SECURE else "http"
24
+ return f"{protocl}://{self.DOCKER_API_PROXY_HOST}:{self.DOCKER_API_PROXY_PORT}"
0 commit comments