- Platform information: Raspberry Pi 2 Model B Rev.1.1
- OS: Raspbian GNU/Linux 9 (stretch)
- openHAB version: openHAB 2.2.0-1 (Release Build)
- Issue of the topic:
I installed the openHABianPi preconfigured iso and configured it until it woked without ssl certs. Then add ed the SSL part from here: http://docs.openhab.org/installation/security.html#adding-or-removing-users
I was able to reach my panel with openHABianPi.local before then after installing the self signed SSL cert not more. With some tinkering i figured out that there was a .local missing in the forwarding to https://openhabianpi/start/index because this worked: https://openhabianpi.local/start/index.
But this happens now with all requests.
Like if i click on the “OPENHAB LOG VIEWER” icon on the start panel, i get the same issue, it links to : http://openhabianpi:9001/ what does not work because its missing the .local in the TLR field. Adding it i get to the requested site http://openhabianpi.local:9001/ works perfect.
how can i add that .local all the times?
Thanks, Novksi
edit:
this is my config:
server {
listen 80;
server_name openHABianPi;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl;
server_name openHABianPi;ssl_certificate /etc/ssl/openhab.crt; ssl_certificate_key /etc/ssl/openhab.key; location / { proxy_pass http://localhost: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; satisfy any; allow 192.168.178.1/24; allow 127.0.0.1; deny all; auth_basic "Username and Password Required"; auth_basic_user_file /etc/nginx/.htpasswd; }
}