Issues with Frigate Behind Nginx and Authelia [Support]: #16711
-
Describe the problem you are havingI have frigate exposed to port 5000 behind nginx and I have it secured with authelia. Frigtate is up and running just fine. The issue i am having is when i access frigate anything on a specified path, ie, /config, doesnt load. I know this has something to do with headers like mentioned in the docs, me, chatgpt, and google cant seem to figure it out. Thank you in advance for your help. VersionDocker :Latest What browser(s) are you using?Firefox Private 128.6.0esr (64-bit) Frigate config filemqtt:
enabled: False # Enable if using MQTT/Home Assistant
cameras:
studio:
ffmpeg:
inputs:
- path: "rtsp://admin:2Hard2guess@192.168.1.196:554/StreamingSetting?version=1.0&action=getRTSPStream&ChannelID=1&ChannelName=Channel1&EncoderPort=0" # Your camera RTSP
roles:
- detect
# - record
detect:
width: 1280
height: 720
fps: 5
auth:
enabled: False # Authelia handles authentication Relevant Frigate log outputnone Relevant go2rtc log outputnone FFprobe output from your cameran/a Frigate statsn/a Install methodDocker Compose docker-compose file or Docker CLI commandversion: "3.9"
services:
frigate:
image: ghcr.io/blakeblackshear/frigate:stable # Latest stable version
container_name: frigate
restart: unless-stopped
volumes:
- ./config:/config
- ./media:/media/frigate # Replace with your storage path
- type: tmpfs
target: /tmp/cache
tmpfs:
size: 1000000000 # 1GB tmpfs for cache
ports:
- "5000:5000" # Internal API
- "8554:8554" # RTSP feeds
#environment:
# - FRIGATE_RTSP_PASSWORD=your_password_here # Optional
networks:
- frigate_network
authelia:
image: authelia/authelia:latest
container_name: authelia
restart: unless-stopped
volumes:
- ./authelia:/config
expose:
- 9091 # Internal port
environment:
- TZ=America/New_York # Adjust timezone
networks:
- frigate_network
nginx:
image: nginx:latest
container_name: nginx
restart: unless-stopped
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./certs:/etc/nginx/certs:ro # Mount self-signed certs
ports:
- "192.168.1.4:80:80" # Bind to specific host IP
- "192.168.1.4:443:443" # Bind to specific host IP
depends_on:
- frigate
- authelia
networks:
- frigate_network
networks:
frigate_network:
driver: bridge Object DetectorCPU (no coral) Network connectionWired Camera make and modeln/a Screenshots of the Frigate UI's System metrics pagesNo response Any other information that may be helpfulthis is my nginx.conf worker_processes 1; events { http {
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This issue was due to the /api path being shared on authelia and frigate. Some have had success fixing this issue with putting frigate behind a subpath such as /frigate, but there are some complications with this. To fix this for my setup, I decided to run frigate on its own VM with its own domain and path. |
Beta Was this translation helpful? Give feedback.
This issue was due to the /api path being shared on authelia and frigate. Some have had success fixing this issue with putting frigate behind a subpath such as /frigate, but there are some complications with this. To fix this for my setup, I decided to run frigate on its own VM with its own domain and path.