fix one machine only
This commit is contained in:
@@ -29,6 +29,15 @@ class AppConfig(BaseModel):
|
||||
schedule: Schedule = Field(default_factory=Schedule)
|
||||
|
||||
|
||||
class AppConfigUpdate(BaseModel):
|
||||
mediamtx_api_url: str = Field(min_length=1, max_length=2048)
|
||||
mediamtx_webrtc_url: str = Field(min_length=1, max_length=2048)
|
||||
mediamtx_api_user: Optional[str] = None
|
||||
mediamtx_api_pass: Optional[str] = None
|
||||
recordings_dir: str = Field(min_length=1, max_length=4096)
|
||||
api_port: int = Field(ge=1, le=65535, default=8008)
|
||||
|
||||
|
||||
class RecordingToggle(BaseModel):
|
||||
enabled: bool
|
||||
|
||||
|
||||
Reference in New Issue
Block a user