mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-09 15:05:26 +03:00
add auth exceptions for exports
This commit is contained in:
parent
ae8be19b5b
commit
4569e538b7
@ -88,7 +88,9 @@ def require_admin_by_default():
|
|||||||
"/go2rtc/streams",
|
"/go2rtc/streams",
|
||||||
"/event_ids",
|
"/event_ids",
|
||||||
"/events",
|
"/events",
|
||||||
|
"/cases",
|
||||||
"/exports",
|
"/exports",
|
||||||
|
"/jobs/export",
|
||||||
}
|
}
|
||||||
|
|
||||||
# Path prefixes that should be exempt (for paths with parameters)
|
# Path prefixes that should be exempt (for paths with parameters)
|
||||||
@ -101,7 +103,9 @@ def require_admin_by_default():
|
|||||||
"/go2rtc/streams/", # /go2rtc/streams/{camera}
|
"/go2rtc/streams/", # /go2rtc/streams/{camera}
|
||||||
"/users/", # /users/{username}/password (has own auth)
|
"/users/", # /users/{username}/password (has own auth)
|
||||||
"/preview/", # /preview/{file}/thumbnail.jpg
|
"/preview/", # /preview/{file}/thumbnail.jpg
|
||||||
|
"/cases/", # /cases/{case_id}
|
||||||
"/exports/", # /exports/{export_id}
|
"/exports/", # /exports/{export_id}
|
||||||
|
"/jobs/export/", # /jobs/export/{export_id}
|
||||||
"/vod/", # /vod/{camera_name}/...
|
"/vod/", # /vod/{camera_name}/...
|
||||||
"/notifications/", # /notifications/pubkey, /notifications/register
|
"/notifications/", # /notifications/pubkey, /notifications/register
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user