u/4x-gkg

Passing mqtt password via environment variable doesn't work

I have Frigate 0.17 running in a docker container under Portainer connecting to mqtt and sending events.

The issue is that it only works for me if I set the password directly in the Frigate configuration file.

I'd like to pass the password via an environment variable, so I can keep the configuration file in git.

I tried various variations of

password: "{FRIGARE_MQTT_PASS}"

(with or without quotes, single or double quotes, with or without $)

but nothing works. It just doesn't connect to mqtt and Home Assistant shows no events, except when I set the literal password in Frigate's config (then HA shows events)

What am I missing?

Thanks.

reddit.com
u/4x-gkg — 22 hours ago
▲ 19 r/NewIran

With all this talk on the regime being starved of cash and the Iranian currency crashing, would you expect anything to shift come around May 21st when the next government salaries are supposed to be paid?

reddit.com
u/4x-gkg — 14 days ago