Remove stale TLSMode/HttpPublic exposure vestige
TLSMode (off/internal/letsencrypt) was only referenced by HttpPublic.tls, and HttpPublic (the expose.http.public field, still carrying a path_prefix and a tls defaulting to the deleted internal mode) was referenced by no config, generator, deploy code, or test — a leftover from the pre-proxy:bool exposure design. Drop the enum, the model, the public field, and both CLI shim re-exports.
This commit is contained in:
@@ -16,12 +16,6 @@ class RestartPolicy(str, Enum):
|
||||
ALWAYS = "always"
|
||||
|
||||
|
||||
class TLSMode(str, Enum):
|
||||
OFF = "off"
|
||||
INTERNAL = "internal"
|
||||
LETSENCRYPT = "letsencrypt"
|
||||
|
||||
|
||||
# ---------------------
|
||||
# Run specs (discriminated union)
|
||||
# ---------------------
|
||||
@@ -129,15 +123,8 @@ class HttpInternal(BaseModel):
|
||||
unix_socket: str | None = None
|
||||
|
||||
|
||||
class HttpPublic(BaseModel):
|
||||
hostnames: list[str] = Field(min_length=1)
|
||||
path_prefix: str = "/"
|
||||
tls: TLSMode = TLSMode.INTERNAL
|
||||
|
||||
|
||||
class HttpExposeSpec(BaseModel):
|
||||
internal: HttpInternal
|
||||
public: HttpPublic | None = None
|
||||
health_path: str | None = None
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user