- Platform information:
- Hardware: HP Proliant
- OS: CentOS Linux 7
- Java Runtime Environment: openjdk version “1.8.0_181”
- openHAB version: latest as of today
The first thing I need to mention is that I run the server in a VestaCP subdomain.
The nginx config file is as follows:
server {
listen 192.168.x.x:443;
server_name home.psmedia.ro www.home.psmedia.ro;
ssl on;
ssl_certificate /home/admin/conf/web/ssl.home.psmedia.ro.pem;
ssl_certificate_key /home/admin/conf/web/ssl.home.psmedia.ro.key;
error_log /var/log/httpd/domains/home.psmedia.ro.error.log error;
location /css {
alias /home/admin/web/home.psmedia.ro/openhab-cloud/public/css;
}
location /js {
alias /home/admin/web/home.psmedia.ro/openhab-cloud/public/js;
}
location /img {
alias /home/admin/web/home.psmedia.ro/openhab-cloud/public/img;
}
location /bootstrap {
alias /home/admin/web/home.psmedia.ro/openhab-cloud/public/bootstrap;
}
location /font-icons {
alias /home/admin/web/home.psmedia.ro/openhab-cloud/public/font-icons;
}
location /fonts {
alias /home/admin/web/home.psmedia.ro/openhab-cloud/public/fonts;
}
location /js-plugin {
alias /home/admin/web/home.psmedia.ro/openhab-cloud/public/js-plugin;
}
location /downloads {
alias /home/admin/web/home.psmedia.ro/openhab-cloud/public/downloads;
}
location / {
proxy_pass http://localhost:3000;
proxy_redirect off;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
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 https;
}
location /error/ {
alias /home/admin/web/home.psmedia.ro/document_errors/;
}
location @fallback {
proxy_pass https://192.168.0.4:8443;
}
location ~ /\.ht {return 404;}
location ~ /\.svn/ {return 404;}
location ~ /\.git/ {return 404;}
location ~ /\.hg/ {return 404;}
location ~ /\.bzr/ {return 404;}
include /home/admin/conf/web/snginx.home.psmedia.ro.conf*;
}
- Issue of the topic: I have installed a fresh instance of the openhab cloud server according to this topic:
Myopenhab
When starting the server all seems well, the output is as follows:
2018-10-26T01:15:15.605Z - info: openHAB-cloud: Backend service is starting up...
2018-10-26T01:15:15.636Z - info: openHAB-cloud: Backend logging initialized...
2018-10-26T01:15:17.198Z - info: openHAB-cloud: Initializing XMPP connection to GCM
2018-10-26T01:15:17.868Z - info: openHAB-cloud: Connecting ro Redis at 127.0.0.1:6379
2018-10-26T01:15:22.203Z - info: openHAB-cloud: Mailer will emulate sending in development environment
2018-10-26T01:15:22.296Z - info: opneHAB-cloud: Trying to connect to mongodb at: mongodb://127.0.0.1/openhab?poolSize=100
2018-10-26T01:15:22.332Z - info: openHAB-cloud: Scheduling a statistics job (every 5 min)
2018-10-26T01:15:22.630Z - info: openHAB-cloud: IFTTT is configured, app handling IFTTT capabilities...
Option polling duration is not valid. Please refer to the README.
2018-10-26T01:15:22.779Z - info: openHAB-cloud: express server listening on port 3000
2018-10-26T01:15:22.801Z - info: openHAB-cloud: Redis connect response: OK
2018-10-26T01:15:22.806Z - info: Redis is ready
node_redis: Warning: Redis server does not require a password, but a password was supplied.
2018-10-26T01:15:22.863Z - info: openHAB-cloud: Successfully connected to mongodb
2018-10-26T01:15:23.116Z - warn: openHAB-cloud: GCM XMPP error: XMPP authentication failure
2018-10-26T01:16:22.334Z - debug: openHAB-cloud: Checking for offline openHABs (0)
2018-10-26T01:16:22.335Z - debug: openHAB-cloud: Checking orphaned rest requests (0)
But when I visit the URL the server is displaying basic authentication pop-up instead of index.
Please help me out.
Regards!