New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unsure how to get Unifi Controller behind Zoraxy #115
Comments
@gokou340 Would you mind showing me how you setup the proxy for your Controller in Zoraxy? |
@tobychui Sure thing! Here you go:
|
@gokou340 From your config, I see no issues with the proxy setup.
Currently zoraxy have no support for |
That sounds good. Running a trace, I can see that I am getting a 403 Forbidden message when I submit my credentials in the controller:
Let me know if this is something different than what I am thinking. |
Also, to add, here are some posts about the same error when behind Apache/Nginx: It might help with debugging. If you need me to pull any logs or do anything on my end, let me know! |
@gokou340 Oh, I know what might be the issues. I see the following in the apache config.
I guess what the Unifi controller want is your client (web browser) to be in the same LAN as the controller itself. So the Can you try one more thing to validate if my guess is correct? Create a subdomain (type A) DNS entry point directly to your Unifi controller IP / point a spare domain to your Unifi controller's IP and see if login via a domain works? If domain direct connection doesn't work, then my guess is correct. I can add a custom mode to "emulate" a local IP request instead of following the standard reverse proxy protocol for web proxy. |
@tobychui |
@gokou340 The DNS A record, and use the domain name (instead of ip address) to connect to your Unifi controller to see if the same error will be shown. |
@tobychui I'm not following, I apologize. With A Records, they can only use an IP Address. If my controller IP is 192.168.1.50 and my domain name is myhomelab.com, what do I need to setup on my end to run the test that you are trying to see? I have a local Windows DNS as well, if that helps. Also, if there is an easier way to chat directly, such as Discord, or whatnot, let me know! |
@gokou340 You can send me an email at [email protected] and we can chat directly, but I am in GMT+8 so probably we don't got much time that we can chat directly. |
@tobychui Email sent your way. I will make sure to update this post when we are completed. |
I'm in the process of migrating from NPM to Zoraxy and the last thing I need to figure out is how to get my Unifi Controller to work behind Zoraxy.
When Zoraxy is being used and I put in my username and password into Unifi, I get the following: "There was an error making that request. Please try again later."
In NPM and Nginx, I had to add the following previously:
I'm not familiar enough with Zoraxy to understand how to add these to the connection. I'd like to fully migrate to Zoraxy, and this is my last step.
Any input would be appreciated!
The text was updated successfully, but these errors were encountered: