blakeblackshear / frigate

NVR with realtime local object detection for IP cameras
https://frigate.video
MIT License
18.59k stars 1.69k forks source link

[Support]: Use secret file #3578

Closed PanMat closed 2 years ago

PanMat commented 2 years ago

Describe the problem you are having

I tried putting values like user name and password in secrets.yaml but "!secrets username" did not work in frigate.yml.

Is there a way to remove sensitive information from frigate.yml and refactor into secrets.yaml file?

Version

3.1

Frigate config file

#Configuration for Frigate
mqtt:
  host: <redacted>
  user: <redacted>
  password: '<redacted>'
  #topic_prefix: frigate
#Camera
cameras:
  wans01:
    ffmpeg:
      inputs:
        - path: rtsp://camera:<redacted>@<redacted>/live/ch0
          roles:
            - detect
            - clips
    detect:
      width: 1280
      height: 720
      fps: 5
    objects:
      track:
        - person
        - car
        - dog
    snapshots:
      enabled: true
      timestamp: true
      bounding_box: true
      retain: 
        default: 2
    record:
      enabled: true
      retain: 
        days: 10

detectors:
  cpu1:
    type: cpu
  cpu2:
    type: cpu
  cpu3:
    type: cpu
  cpu4:
    type: cpu
  cpu5:
    type: cpu

Relevant log output

None

FFprobe output from your camera

None

Frigate stats

No response

Operating system

Debian

Install method

HassOS Addon

Coral version

CPU (no coral)

Network connection

Wired

Camera make and model

Wansview v w4

Any other information that may be helpful

No response

NickM-27 commented 2 years ago

This is supported in standard docker install via environment variables, I don't think there's a way for addon users to do this currently

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.