mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-05 18:55:23 +03:00
Allow extra configuration options if FRIGATE_ALLOW_EXTRA is set in environment variables
This commit is contained in:
parent
7c1568fcb9
commit
a29c4dccfb
@ -45,7 +45,11 @@ DEFAULT_DETECTORS = {"cpu": {"type": "cpu"}}
|
|||||||
|
|
||||||
class FrigateBaseModel(BaseModel):
|
class FrigateBaseModel(BaseModel):
|
||||||
class Config:
|
class Config:
|
||||||
extra = Extra.forbid
|
extra = (
|
||||||
|
Extra.allow
|
||||||
|
if os.environ.get("FRIGATE_ALLOW_EXTRA") is not None
|
||||||
|
else Extra.forbid
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class LiveModeEnum(str, Enum):
|
class LiveModeEnum(str, Enum):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user