danielperna84 / hass-configurator

Configuration UI for Home Assistant
MIT License
306 stars 168 forks source link

Login error when API token set using env variables in docker compose #210

Closed gimeno closed 3 years ago

gimeno commented 3 years ago

Version: 0.4.0 I've installed HA and HASS Configurator as docker containers.

If I set HASS_API_PASSWORD in the docker compose file I get the below notification in HA each time I load the configurator Login attempt or request with invalid authentication from 127.0.0.1

Only If I set the variable in the settings.conf it works fine and the notification doesn't show up

This is the docker-compose setup I've tried and fails

version: '3'
services:
  homeassistant:
    container_name: home-assistant
    image: homeassistant/home-assistant:stable
    network_mode: host
    volumes:
      - ./config:/config
    environment:
      - TZ=Europe/Madrid
    restart: unless-stopped

  ha-configurator:
    container_name: ha-configurator
    image: causticlab/hass-configurator-docker:0.4.0-arm
    restart: unless-stopped
    network_mode: host
    volumes:
      - ./configurator/config:/config
      - ./config:/hass-config
    environment:
      - HASS_API_PASSWORD=MY_TOKEN
danielperna84 commented 3 years ago

Did you read the Wiki? Specifically this part? ;-)

gimeno commented 3 years ago

I'm sorry, I don't know how I missed that.