Skip to content

Documentation

Connect Frigate

Frigate stays in charge of your cameras, detection, and recordings. This guide covers the connection settings in Avistio Edge, which address to use, HTTPS certificates, and the Frigate settings that Live viewing depends on.

•

What Frigate and Avistio do

Frigate connects to your cameras, detects objects, records video, and applies your retention settings. Its built-in go2rtc restreams camera video and serves the live WebRTC stream. Avistio Edge signs in to Frigate and gives you live view, events, recordings, and optional alarm control on top of that. Avistio does not have its own detection engine and does not keep its own copy of your recordings.

Avistio is independent and not affiliated with the Frigate project. For installing and configuring Frigate itself, use the Frigate documentation.

•

Connection settings

You enter these in the setup step Connect Frigate, and later from the user and settings menu under Integrations (administrators only).

Frigate connection settings
SettingWhat to enter
Frigate URLThe base address of Frigate, for example https://192.168.1.10:8971. Only http:// or https://, a host, and a port; no path, user name, or password.
Frigate username and passwordA Frigate user. Avistio requires Frigate authentication; a user with the viewer role is enough. The password is stored encrypted and never shown again; leave it blank later to keep it.
Request timeout (milliseconds)Under Advanced settings. How long Avistio waits for each Frigate response: default 8000, allowed 1000 to 60000. Raise it only if Frigate responds slowly.
HTTPS certificateUnder Advanced settings. Standard trusted certificates (recommended), or Trust a specific certificate authority or self-signed certificate; see Custom certificate trust.

Test connection signs in to Frigate, lists the cameras, reads Frigate's go2rtc stream list, and checks that each camera has a Live stream. It does not test whether your browser can play video. Continue (during setup) and Save (in Integrations) check before saving. If Frigate is temporarily offline, Integrations also offers Save without connection check, except when the certificate settings change.

Connection check result: Connection successful. Frigate is ready. Connected to Frigate and signed in. 1 camera found. The camera is ready for Live. A note says Live viewing also needs the Frigate WebRTC port 8555 to be reachable from the browser.
A successful connection check during setup (test installation).
•

Which address to use

Edge runs in a Docker container. The Frigate URL must be reachable from inside that container, not just from your browser.

Use Frigate's authenticated port, usually 8971. Don't expose Frigate's unauthenticated port 5000 to your network for Avistio.

•

Common setups

Frigate and Edge on the same computer, in separate Compose projects

Separate Compose projects do not share a Docker network automatically. The Avistio Compose file creates a network named avistio; attach your Frigate container to it by adding this to Frigate's Compose file, then run docker compose up -d in Frigate's folder. Start Avistio first, because it creates the network.

Frigate's compose.yaml (additions)

services:
  frigate:
    # ...your existing Frigate service...
    networks:
      - default
      - avistio

networks:
  avistio:
    external: true

Then use the Frigate container name as the host, for example https://frigate:8971. This keeps traffic between Edge and Frigate on the Docker network. With HTTPS, the certificate must contain that name (see below). Alternatively, skip the shared network and use the computer's network address, as in the next case.

When Frigate is attached, docker compose down in the Avistio folder reports that the avistio network is still in use. That is harmless: the network stays for Frigate, and the next docker compose up -d reuses it.

Frigate on another computer, or on the same computer by IP address

Use the Frigate computer's address on your network, for example http://192.168.1.10:8971 or https://192.168.1.10:8971. Its firewall must allow the Edge computer to reach port 8971. A fixed (reserved) address for the Frigate computer avoids a broken connection after a router restart.

Frigate behind an HTTPS reverse proxy

If you already reach Frigate through a reverse proxy with a certificate from a public certificate authority, for example https://frigate.example.com, use that address with Standard trusted certificates. Avistio still signs in with the Frigate user, so the proxy must pass requests to Frigate's own authentication. A proxy that shows its own sign-in page in front of Frigate blocks Avistio. Don't make Frigate reachable from the internet for Avistio: Edge only needs to reach Frigate on your network.

•

HTTPS and certificates

Avistio always verifies Frigate's HTTPS certificate: it must be trusted, valid, and issued for the host name or IP address in the Frigate URL. This check cannot be turned off.

Frigate's authenticated port 8971 uses HTTPS by default, with a certificate that Frigate generates itself. That generated certificate contains no host name, so Avistio cannot verify it, even if you trust it explicitly. Choose one of these:

Options for Frigate HTTPS
OptionWhen to use it
A certificate for Frigate's host nameRecommended. Use a certificate from a public certificate authority (standard trust), or from your own private certificate authority (custom trust). It must list the exact name or IP address you use in the Frigate URL. Install it in Frigate as described in the Frigate TLS documentation.
A self-signed certificate you created for that nameUse custom trust with that certificate. It must list the name or IP address in the Frigate URL.
Authenticated http:// on a protected local networkFrigate can turn off its TLS (tls: enabled: false) so that port 8971 serves plain http:// with Frigate sign-in still required. Traffic between Edge and Frigate, including the Frigate password and video, is then not encrypted. Consider it only on a network you trust, and never make a plain http:// Frigate port reachable from the internet.
•

Custom certificate trust

Use this when Frigate's certificate comes from your own certificate authority, or is a self-signed certificate made for Frigate's host name.

  • What to paste: the root certificate of your certificate authority, or Frigate's self-signed certificate, in PEM format (blocks starting with -----BEGIN CERTIFICATE-----). Up to 5 certificates and 32 KB. Intermediate certificates are not accepted as trust anchors; Frigate must send them itself.
  • Public certificates only. Never paste a private key. Avistio rejects text that looks like one.
  • It replaces, not adds to, standard trust for this one Frigate address. Avistio then trusts only Frigate certificates that chain to the certificates you pasted, for this address only.
  • Checks stay on. Host name and validity dates are still checked on every connection. A certificate authority can issue other certificates, so trust only one you control.
  1. Open the certificate settings

    Enter an https:// Frigate URL, open Advanced settings, and under HTTPS certificate choose Trust a specific certificate authority or self-signed certificate.

  2. Paste the certificate and test

    Paste the certificate into Trusted certificates (PEM) and choose Test connection. Avistio shows each certificate's subject, issuer, validity, names, and SHA-256 fingerprint.

  3. Compare the fingerprint

    Compare the fingerprint with one from a source you trust, such as the system that issued the certificate. For the certificate mounted into a Frigate container named frigate, this shows it on the Frigate computer:

    docker exec frigate openssl x509 -in /etc/letsencrypt/live/frigate/fullchain.pem -noout -fingerprint -sha256
  4. Confirm and save

    Tick I verified these certificates and their SHA-256 fingerprints through a trusted source…, then choose Continue or Save. Changes apply without restarting Edge.

    Certificate review for https://frigate:8971 listing the certificate authority subject, issuer, validity period, names, and SHA-256 fingerprint, followed by the confirmation checkbox.
    The certificate review shown after a test with custom trust. Compare the SHA-256 fingerprint before ticking the box (test certificate authority).

When the certificate changes

Avistio never trusts a replacement certificate automatically. If Frigate's certificate is renewed by a different authority, or a self-signed certificate is replaced, the connection fails with Frigate's certificate is not covered by the certificates you configured. Verify the new certificate, then paste it under Integrations → Advanced settings → HTTPS certificate and save. A certificate change always needs a successful connection check. Renewals signed by the same root certificate keep working.

•

Streams for Live

Avistio currently expects each Frigate camera to have a go2rtc stream with the same name. Camera frontdoor with stream frontdoor passes; a camera whose only stream is frontdoor_main is reported as not ready for Live. The connection check lists missing names and the streams it found.

This illustrative snippet shows one camera restreamed through go2rtc and recorded by Frigate. Merge it into your Frigate configuration instead of replacing unrelated settings.

Frigate config.yml (example)

go2rtc:
  streams:
    frontdoor:
      - rtsp://camerauser:REPLACE_ME@192.168.1.50:554/stream1
  webrtc:
    candidates:
      - 192.168.1.10:8555
      - stun:8555

cameras:
  frontdoor:
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/frontdoor
          input_args: preset-rtsp-restream
          roles:
            - record
            - detect
    record:
      enabled: true
  • 192.168.1.50 is an example camera address and 192.168.1.10 the Frigate computer. The RTSP path depends on the camera manufacturer. URL-encode special characters in camera credentials.
  • Object detection also needs a detector configured in Frigate; follow Frigate's detector documentation.
  • Prefer H.264 video. H.265/HEVC support differs between browsers and devices, so a stream can pass the check but not play.

Main and substreams

A lower-resolution substream reduces bandwidth and decoding load. Keep the stream named exactly like the camera, and add others, for example frontdoor_sub. Frigate's optional live.streams mapping (Frigate 0.16 and later) labels the choices.

Frigate config.yml (example)

go2rtc:
  streams:
    frontdoor:
      - rtsp://camerauser:REPLACE_ME@192.168.1.50:554/main
    frontdoor_sub:
      - rtsp://camerauser:REPLACE_ME@192.168.1.50:554/sub

cameras:
  frontdoor:
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/frontdoor
          input_args: preset-rtsp-restream
          roles: [record]
        - path: rtsp://127.0.0.1:8554/frontdoor_sub
          input_args: preset-rtsp-restream
          roles: [detect]
    live:
      streams:
        Main: frontdoor
        Sub: frontdoor_sub

See Frigate's restream and live view documentation for current options.

•

Events and recordings

Avistio shows what Frigate has. New events appear only when Frigate creates them, for example when object detection is configured and enabled. Recordings require Frigate recording to be enabled, a camera input with the record role, and a retention setting that keeps footage for the time you want to view. See Frigate's recording documentation.

•

Live viewing and port 8555

Live video plays over WebRTC between Frigate's go2rtc and your browser. Edge only sets up the connection. On your local network the video travels directly; remotely it travels directly when the networks allow it, otherwise through an Avistio TURN relay. For local viewing, the browser must therefore reach go2rtc's WebRTC port 8555 over TCP and UDP on the Frigate computer:

  • Depending on Frigate's Docker network mode, publish 8555 for TCP and UDP in Frigate's Compose file. Don't add it to the Avistio Compose file.
  • Set a go2rtc WebRTC candidate with the Frigate computer's address that your browsers can reach, as in the example above. Frigate's documentation also uses stun:8555.

Remote viewing through Avistio Cloud does not require forwarding port 8555 on your router. See Remote access and networking.

•

Troubleshooting the Frigate connection

The connection check shows a specific message. The most common ones:

Frigate refused the connection

Nothing accepted the connection at that address and port. Check that Frigate is running and the port is right (usually 8971). If you used localhost, use the computer's network address or a shared Docker network instead. If Frigate runs on another computer, check its firewall.

Frigate did not respond in time, or the address cannot be reached

Check the address, the routing between the two computers, and firewalls. For Docker host names such as frigate, check that both containers share a network. Raise the timeout under Advanced settings only if Frigate is reachable but slow.

The Frigate host name could not be found

Check the spelling. Container names resolve only on a shared Docker network. Names from your router or local DNS must also resolve inside containers. Otherwise use the IP address.

Wrong http:// or https://

Messages such as This Frigate port requires HTTPS, This address does not answer with HTTPS, or The connection was closed before Frigate responded usually mean the scheme doesn't match the port. Port 8971 uses https:// unless Frigate's TLS is turned off.

Frigate rejected the username or password

Sign in to Frigate in a browser with the same user, then enter the credentials again. Do not turn off Frigate authentication as a workaround. This Frigate account does not have the required permissions means the user's role blocks access to cameras or configuration.

Avistio cannot verify the certificate that Frigate presented

The certificate comes from an authority Avistio doesn't trust, or Frigate doesn't send its intermediate certificates. For your own certificate authority, use custom trust with its root certificate. Frigate's self-generated certificate cannot pass; see HTTPS and certificates.

The Frigate certificate does not match the address in the URL

The certificate doesn't list the name or IP address you typed. Use an address the certificate contains, for example its host name instead of the IP address, or replace the certificate with one issued for the address you use.

The certificate has expired or is not valid yet

Renew the certificate in Frigate. If it should be valid, check the date and time on both computers.

No enabled cameras found

Frigate has no enabled cameras, or the Frigate user may not see them. Add or enable cameras in Frigate, or adjust the user's camera access. You can continue and add cameras later.

Cameras are not ready for Live

A camera has no go2rtc stream with the same name, or the stream list could not be read. See Streams for Live. If the check passes but Live keeps connecting in the browser, check port 8555 and the WebRTC candidate.

After setup, the user and settings menu → Diagnostics shows the current Frigate connection status, the Frigate user and role, response time, and discovered cameras.

•

Keep credentials private

Frigate configuration files and logs can contain camera passwords. Don't post them publicly without removing credentials. Avistio stores the Frigate password and other integration secrets encrypted in its local database; Avistio Cloud does not receive your Frigate configuration or credentials.