Setting new HA environment variables on a supervised install

I’m trying to set system environment variables on the HA docker in a supervised install. Searching the forums mentions ways to do this on an rpi install using /home/pi/.homeassistant/ha.env or editing /etc/systemd/system/home-assistant.service but this doesn’t apply to supervised installs on Debian x64.

I tried editing the HA docker environment variables directly in Portainer but the supervisor reverts to the original container, which makes sense.

What’s the correct way to set HA environment variables?

For context, I’m trying to set a MASS_BASE_URL environment variable due to having a dual-homed install.

I have a similar question, needing to set an environment variable at a very early step. Did you get anywhere?

Unfortunately not. I gave up on that for the time being

Are you still waiting for a reply or did you find the solution anywhere else ? If yes I am also interested :slightly_smiling_face:

Hello,
I coded a new integration to add environment variables to HAOS: GitHub - Athozs/hass-environment-variable: Add Environment Variable to Home Assistant.
It’s not available in HACS yet, you’ll have to install it as a custom HACS repo, or manually without HACS.
Hope it will help.