Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Externes ESPHome wird nicht geöffnet, wenn eine Authentifizierung benötigt wird #193

Open
patricknitsch opened this issue Nov 28, 2023 · 10 comments
Assignees
Labels
bug Something isn't working

Comments

@patricknitsch
Copy link

Hallo Dutchman,

mein externes ESPHome ist passwortgesichert. Dementsprechend muss ich das Passwort eingeben, um mich anmelden zu können.

image

Werden die Zugangsdaten falsch eingegeben, kommt eine entsprechende Fehlermeldung. Bei richtiger Eingabe passiert aber gar nichts.

Im Protokoll wird kein Fehler angezeigt.

Ohne Authentifizierung wird ESPHome korrekt angezeigt.

Weist du, was ich versuchen könnte, bzw. woran es liegen könnte?

@patricknitsch patricknitsch added the bug Something isn't working label Nov 28, 2023
@DutchmanNL
Copy link
Contributor

ich gehe mal davon aus das dafuer http benötigt wird ? dan where es relaters an diese issues.

#159
#180
#187

@patricknitsch
Copy link
Author

Bei den anderen Problemen war Iobroker über https erreichbar. Hier ist Iobroker auf http eingestellt. Ohne Authentifizierung wird die Seite gleich geöffnet

@DutchmanNL
Copy link
Contributor

Benötigt das Dashboard Dan eine https Verbindung oder weiterhin http

wie erreichst du es außerhalb des Admin?

kan mir vorstellen das ich dafür https bei der url selektierbar machen muss um das zu lösen

@patricknitsch
Copy link
Author

patricknitsch commented Nov 29, 2023 via email

@DutchmanNL
Copy link
Contributor

Es benötigt weiterhin http. Die Website des ESP Home Containers ist ebenfalls in http erreichbar.

Am 29.11.2023 um 15:02 schrieb Rafal Drozda @.***>: Benötigt das Dashboard Dan eine https Verbindung oder weiterhin http wie erreichst du es außerhalb des Admin? kan mir vorstellen das ich dafür https bei der url selektierbar machen muss um das zu lösen — Reply to this email directly, view it on GitHub <#193 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3KCDOPZKEHCG762UQT2OLLYG456PAVCNFSM6AAAAAA75VMYZKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZRHE2TGMBVG4. You are receiving this because you authored the thread.

hmm es wundert mich das dan eine loop entsteht und frage mich auch wie ich es lösen koennte, den im gründe ist der tab nur ein link der es in einer i-frame öffnet

@Apollon77 hast du vielleicht eine Idee ?

@SimonFischer04
Copy link
Contributor

@patricknitsch Hast du maybe ein compose oder so, dass Authentifizierung aktiviert hat, damit ich das reproduzieren und testen kann.

@patricknitsch
Copy link
Author

@SimonFischer04 Meinst du ein Compose File von meinem Container?

services:
  esphome:
    container_name: esphome
    image: ghcr.io/esphome/esphome
    volumes:
      - /opt/esphome/config:/config
      - /etc/localtime:/etc/localtime:ro
    restart: unless-stopped
    privileged: true
    network_mode: host
    environment:
      - TZ=Europe/Berlin
      - USERNAME=xxxxxxxxxx   
      - PASSWORD=xxxxxxxxxx      
      - ESPHOME_DASHBOARD_USE_PING="true"
    labels:
      - com.centurylinklabs.watchtower.scope=esphome
  watchtower:
    image: containrrr/watchtower
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    command: --scope esphome --cleanup
    restart: unless-stopped
    logging:
      options:
        max-size: 10m
        max-file: '3'
    labels:
      - com.centurylinklabs.watchtower.scope=esphome

@SimonFischer04
Copy link
Contributor

@SimonFischer04 Meinst du ein Compose File von meinem Container?

services:
  esphome:
    container_name: esphome
    image: ghcr.io/esphome/esphome
    volumes:
      - /opt/esphome/config:/config
      - /etc/localtime:/etc/localtime:ro
    restart: unless-stopped
    privileged: true
    network_mode: host
    environment:
      - TZ=Europe/Berlin
      - USERNAME=xxxxxxxxxx   
      - PASSWORD=xxxxxxxxxx      
      - ESPHOME_DASHBOARD_USE_PING="true"
    labels:
      - com.centurylinklabs.watchtower.scope=esphome
  watchtower:
    image: containrrr/watchtower
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    command: --scope esphome --cleanup
    restart: unless-stopped
    logging:
      options:
        max-size: 10m
        max-file: '3'
    labels:
      - com.centurylinklabs.watchtower.scope=esphome

Ja, danke.
Werd mal schaun ob ich das problem reproduzieren kann und eine Lösung finde.

@SimonFischer04
Copy link
Contributor

@patricknitsch Bitte nochmal testen, ist ja doch schon eine Weile her, eventuell hat sich das Problem bei dir ja auch schon gelöst.

Kann das Problem leider nicht nachstellen. Habe es gerade zum Testen mit exakt folgendem docker-compose probiert:

version: '3'
services:
  esphome:
    container_name: esphome
    image: esphome/esphome
    volumes:
      - /path/to/esphome/config:/config
      - /etc/localtime:/etc/localtime:ro
    restart: always
    privileged: true
    network_mode: host
    environment:
      - TZ=Europe/Vienna
      - USERNAME=admin
      - PASSWORD=admin
      - ESPHOME_DASHBOARD_USE_PING="true"

und meinem aktuellen beta branch. Funktioniert bei mir problemlos.

@patricknitsch
Copy link
Author

Muss ich später mal schauen. Aktuell läuft IO Broker über https. Da funktioniert das gar nicht.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants