fhem / alexa-fhem-docker

A FHEM complementary Docker image for Amazon alexa voice assistant, based on Debian.
https://fhem.de/
MIT License
6 stars 4 forks source link

User/password fhem webgui #63

Open tompsg-git opened 1 year ago

tompsg-git commented 1 year ago

Can you please add an Option to define user/password for webgui in config.json?

"connections": [ { "name": "FHEM", "webname": "fhem", "filter": "alexaName=..*", "uid": "6062", "port": "8083", "server": "fhem", "auth": {"user": "fhemuser", "pass": "fhempass"} }

sidey79 commented 1 year ago

You can add anything to config.json that is supported by alexa-fhem itself.

What exactly do you mean witch an option to define those settings?

tompsg-git commented 1 year ago

It was not so easy to edit the config.json because of the missing editor in the container. So it would be easier to use an environment variable to initially set user and pass.

I have solved it, but it would easier for others.

sidey79 commented 1 year ago

ok i think i understood the issue, but be arware that you loose your configuration if you edit it inside the container. i recommend using a mount from outside the container.

volumes:
      - "./alexa-fhem/:/alexa-fhem/"

But i can think about an environment variable