- Platform information:
- Raspberry pi 3_
- OS: Openhabian
- openHAB version:2.4
- Issue of the topic:
I have installed ngnix in and installed the Dinamic udpdate client of no-ip in my openhabian installation I have also configured the ngnix of the following way:
server {
listen 80;
server_name domain_given_by_noip.com;
location / {
proxy_pass http://localhost:8181/;
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 "Username and Password Required";
auth_basic_user_file /etc/nginx/.htpasswd;
}
}
I carry out portforwarding in my router, my issue is that from external place of my internal network this acces is absolutely open trough “http://domain_given_by_noip.ddns.net:8181” , ngnix does not request user and password.
How Can I set up ngnix with this domain given by no-ip, I need to secure this remote acces.
If I replace this domain by the internal IP in ngnix configuration, and type in my browser locally http://internalIP ngnix request efectivelly user and password.
Thanks for your advises.