[Config Support]: Frigate doesnt seem to read Auth Headers from Caddy #20448
-
Describe the problem you are having
Here is what I see in Caddy. It sends a long with 2 headers Here is my Frigate config:
Frigate couldn't recognize the user or the role from the headers. Am I missing something here? Thank you! Version0.16.1 Frigate config fileauth:
enabled: false
proxy:
default_role: admin
separator: " "
header_map:
user: X-Token-User-Email
role: xX-Token-User-Roles Relevant Frigate log outputNA Relevant go2rtc log outputNA Frigate statsNo response Operating systemDebian Install methodDocker Compose docker-compose file or Docker CLI commandnetworks:
main-cidr:
name: main-cidr
external: true
volumes:
frigatemedia:
driver: local
driver_opts:
type: nfs
o: "addr=172.16.100.10,nfsvers=4"
device: ":/mnt/RAIDZ1-HDD/Frigate"
services:
frigate:
container_name: frigate
networks:
- main-cidr
restart: unless-stopped
image: ghcr.io/blakeblackshear/frigate:0.16.1-rocm
cap_add:
- SYS_ADMIN
shm_size: "256mb" # update for your cameras based on calculation above
devices:
#- /dev/bus/usb:/dev/bus/usb # Passes the USB Coral, needs to be modified for other versions
- /dev/apex_0:/dev/apex_0
- /dev/kfd:/dev/kfd
- /dev/dri:/dev/dri
volumes:
- /etc/localtime:/etc/localtime:ro
- /home/lhtadmin/frigate/config:/config
- frigatemedia:/media/frigate
- type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
target: /tmp/cache
tmpfs:
size: 1000000000
ports:
#- "5000:5000"
- "8971:8971"
- "8554:8554" # RTSP feeds
- "8555:8555/tcp" # WebRTC over tcp
- "8555:8555/udp" # WebRTC over udp
environment:
FRIGATE_RTSP_PASSWORD: "password"
LIBVA_DRIVER_NAME: "radeonsi"
HSA_OVERRIDE_GFX_VERSION: "9.0.0" Object DetectorCoral Screenshots of the Frigate UI's System metrics pagesNo response Any other information that may be helpfulNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I can see a typo in your configuration that's preventing Frigate from reading the role header correctly. In your Frigate config, you have: role: xX-Token-User-Roles But your Caddy logs show the header as:
You have an extra "x" at the beginning - it should be: auth:
enabled: false
proxy:
default_role: admin
separator: " "
header_map:
user: X-Token-User-Email
role: X-Token-User-Roles However, there's another important consideration. The header The standard header name for roles with proxies is Alternatively, you might need to configure Frigate to accept the custom 📚 Sources:
Have another question? Just tag @inkeep. |
Beta Was this translation helpful? Give feedback.
-
I just realized Frigate only support certain headers, so I have to change from Caddy
|
Beta Was this translation helpful? Give feedback.
I can see a typo in your configuration that's preventing Frigate from reading the role header correctly.
In your Frigate config, you have:
But your Caddy logs show the header as:
You have an extra "x" at the beginning - it should be:
However, there's another important consideration. The header
X-Token-User-Roles
is not one of the default permitted headers in Frigate (1). You may need to ensure this header is properly whitelisted.The standard header name for roles with prox…