🚧 Update certificate management
This commit is contained in:
@@ -46,6 +46,20 @@ class Settings(BaseSettings):
|
||||
default_cert_validity_days: int = 365
|
||||
default_ca_validity_days: int = 3650
|
||||
|
||||
# Broker container ports published to the host by compose.yaml —
|
||||
# listeners on other ports are only reachable INSIDE the Docker
|
||||
# network (the platform generates any port; compose gates access).
|
||||
# Comma-separated container ports; see compose.yaml `ports:`.
|
||||
published_ports: str = "1883,8883"
|
||||
|
||||
@property
|
||||
def published_port_set(self) -> set[int]:
|
||||
return {
|
||||
int(p.strip())
|
||||
for p in self.published_ports.split(",")
|
||||
if p.strip().isdigit()
|
||||
}
|
||||
|
||||
@property
|
||||
def is_production(self) -> bool:
|
||||
return self.app_env == "production"
|
||||
|
||||
Reference in New Issue
Block a user