add nginx and change default file locations

This commit is contained in:
Blake Blackshear
2020-11-02 05:44:16 -06:00
parent eced06eea8
commit b7c09a9b38
8 changed files with 97 additions and 13 deletions

View File

@@ -36,7 +36,7 @@ class FrigateApp():
raw_config = f.read()
if config_file.endswith(".yml"):
config = yaml.load(raw_config)
config = yaml.safe_load(raw_config)
elif config_file.endswith(".json"):
config = json.loads(raw_config)

View File

@@ -30,8 +30,8 @@ MQTT_SCHEMA = vol.Schema(
SAVE_CLIPS_SCHEMA = vol.Schema(
{
vol.Optional('max_seconds', default=300): int,
vol.Optional('clips_dir', default='/clips'): str,
vol.Optional('cache_dir', default='/cache'): str
vol.Optional('clips_dir', default='/media/frigate/clips'): str,
vol.Optional('cache_dir', default='/tmp/cache'): str
}
)