Page 1 of 1

Controlicz and NGINX

Posted: Wednesday 11 July 2018 11:31
by rlg6767
Hi,

So I have Domoticz sat begind NGINX which is being used to reverse proxy a number of applications to the internet. I can access Domoticz remotely from the browser using https://mydns.dns.net/domo fine. I don't have a username/password setup for Domoticz.

My server block in NGINX looks like this:

# Domo
location /domo {
proxy_pass http://192.168.1.90:8080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}

However in Controlicz, I set my the host addrress to https://mydns.dns.net/domo with port 443, and use my NGINX username and password but it doesn't connect and always pops up with "Check your Settings".

Has anyone else tried this and got it working?
Many thanks!!

Re: Controlicz and NGINX

Posted: Thursday 20 September 2018 11:59
by bverhalleman
Hi

I just encountered the same problem. It looks like Controlicz doesn't like the /domo suffix. I ended up in configuring it like this

# Domo
location / {
proxy_pass http://192.168.1.90:8080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}

# Otherapp
location /otherapp {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
}

Gr