Closed jti989 closed 3 years ago
Found this link in one of the related topics:
https://community.openhab.org/t/oh3-with-nginx-reverse-proxy-and-authentication/106528/14
This helped me, here my configuration for traefik with kubernetesCRD:
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: openhab
spec:
headers:
customResponseHeaders:
Set-Cookie: "X-OPENHAB-AUTH-HEADER=1"
---
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: basic-auth
spec:
basicAuth:
secret: somesecret
removeHeader: true
Hi,
I get a http401 error in the app when I try to connect to my openhab3 instance through a reverse proxy with the openhab authentication enabled.
Steps to reproduce:
You will get an "Authentication failed" error in the app. The solution is to disable the openhab internal authentication with
bundle:stop org.openhab.core.io.rest.auth
. This has to be done after every restart of openhab and solves the app-issue, but as far as I noticed destroyes the admin view in the normal webinterface (mainUI).Is there an option to disable auth from openhab completely and have the mainUI running? Like it was in 2.5?