The problem is that I would like everything to be redirected to https, with the exception of the /infom part, as far as I know, unifi can only connect devices via http because it communicates encrypted by default, of course if this is not possible, then I'm sorry and please fix it.
So the question is, how can I set it to treat the /inform section as an exception?
I don't know if I'm in the right place, but if not, I'll fix it.
I have such a problem that I want to set up the Unifi controller with the proxy manager. I entered the following in the custom configuration:
location / { proxy_pass https://192.168.XX.XXX:8843;
proxy_ssl_verify off;
proxy_ssl_session_reuse on;
proxy_buffering off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_hide_header Authorization;
proxy_set_header Referer '';
proxy_set_header Origin '';
}
location /inform {
proxy_pass http://192.168.XX.XXX:8080;
proxy_ssl_verify off;
proxy_ssl_session_reuse on;
proxy_buffering off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_hide_header Authorization;
proxy_set_header Referer '';
proxy_set_header Origin '';
}
location /wss {
proxy_pass https://192.168.XX.XXX:8843;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Origin '';
proxy_buffering off;
proxy_hide_header Authorization;
proxy_set_header Referer '';
}
The problem is that I would like everything to be redirected to https, with the exception of the /infom part, as far as I know, unifi can only connect devices via http because it communicates encrypted by default, of course if this is not possible, then I'm sorry and please fix it.
So the question is, how can I set it to treat the /inform section as an exception?