Set body size to be larger

This commit is contained in:
Nicolas Mowen 2024-10-23 12:06:54 -06:00
parent 40c83c69b9
commit a8725fd313
2 changed files with 10 additions and 3 deletions

View File

@ -246,6 +246,8 @@ http {
proxy_no_cache $should_not_cache;
add_header X-Cache-Status $upstream_cache_status;
client_max_body_size 10M;
location /api/vod/ {
include auth_request.conf;
proxy_pass http://frigate_api/vod/;

View File

@ -905,9 +905,14 @@ def set_sub_label(
event = None
tracked_obj: TrackedObject = request.app.detected_frames_processor.camera_states[
event.camera if event else body.camera
].tracked_objects.get(event_id)
if request.app.detected_frames_processor:
tracked_obj: TrackedObject = (
request.app.detected_frames_processor.camera_states[
event.camera if event else body.camera
].tracked_objects.get(event_id)
)
else:
tracked_obj = None
if not event and not tracked_obj:
return JSONResponse(