mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 09:25:55 +03:00
[GH-ISSUE #3912] Unifi controller question #2565
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#2565
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bohemtucsok on GitHub (Aug 2, 2024).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/3912
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?