I am using the newest version of the openhabianpi image and configured authentication with nginx as described here: https://www.openhab.org/docs/installation/security.html#options-for-secure-remote-access
Everything works fine with a web browser but not with the openhab android app. I just get the spinning circle on the home screen but the page isn’t loading. I have set the correct credentials in the settings of the app.
The connection itself seems to work, because when I put in a wrong password I get an authentication error on the home screen. Is this a known issue?
Here’s my nginx config:
# Default server configuration
#
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name openhabianpi.;
ssl_certificate /etc/ssl/openhab.crt;
ssl_certificate_key /etc/ssl/openhab.key;
location / {
proxy_pass http://127.0.0.1:8080/;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto &scheme;
auth_basic "";
auth_basic_user_file /etc/nginx/.htpasswd;
}
}
server {
listen 80;
listen [::]:80;
#
server_name openhabianpi.;
return 301 https://$server_name$request_uri;
}