mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-04 04:27:42 +03:00
update reference config and auth docs
This commit is contained in:
parent
08af50e051
commit
85b7b101a6
@ -109,6 +109,14 @@ proxy:
|
|||||||
|
|
||||||
Frigate supports both `admin` and `viewer` roles (see below). When using port `8971`, Frigate validates these headers and subsequent requests use the headers `remote-user` and `remote-role` for authorization.
|
Frigate supports both `admin` and `viewer` roles (see below). When using port `8971`, Frigate validates these headers and subsequent requests use the headers `remote-user` and `remote-role` for authorization.
|
||||||
|
|
||||||
|
A default role can be provided. Any value in the mapped `role` header will override the default.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
proxy:
|
||||||
|
...
|
||||||
|
default_role: viewer
|
||||||
|
```
|
||||||
|
|
||||||
#### Port Considerations
|
#### Port Considerations
|
||||||
|
|
||||||
**Authenticated Port (8971)**
|
**Authenticated Port (8971)**
|
||||||
|
|||||||
@ -78,16 +78,19 @@ proxy:
|
|||||||
# Optional: Mapping for headers from upstream proxies. Only used if Frigate's auth
|
# Optional: Mapping for headers from upstream proxies. Only used if Frigate's auth
|
||||||
# is disabled.
|
# is disabled.
|
||||||
# NOTE: Many authentication proxies pass a header downstream with the authenticated
|
# NOTE: Many authentication proxies pass a header downstream with the authenticated
|
||||||
# user name. Not all values are supported. It must be a whitelisted header.
|
# user name and role. Not all values are supported. It must be a whitelisted header.
|
||||||
# See the docs for more info.
|
# See the docs for more info.
|
||||||
header_map:
|
header_map:
|
||||||
user: x-forwarded-user
|
user: x-forwarded-user
|
||||||
|
role: x-forwarded-role
|
||||||
# Optional: Url for logging out a user. This sets the location of the logout url in
|
# Optional: Url for logging out a user. This sets the location of the logout url in
|
||||||
# the UI.
|
# the UI.
|
||||||
logout_url: /api/logout
|
logout_url: /api/logout
|
||||||
# Optional: Auth secret that is checked against the X-Proxy-Secret header sent from
|
# Optional: Auth secret that is checked against the X-Proxy-Secret header sent from
|
||||||
# the proxy. If not set, all requests are trusted regardless of origin.
|
# the proxy. If not set, all requests are trusted regardless of origin.
|
||||||
auth_secret: None
|
auth_secret: None
|
||||||
|
# Optional: The default role to use for proxy auth. Must be "admin" or "viewer"
|
||||||
|
default_role: viewer
|
||||||
|
|
||||||
# Optional: Authentication configuration
|
# Optional: Authentication configuration
|
||||||
auth:
|
auth:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user