-
Notifications
You must be signed in to change notification settings - Fork 106
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. |
Any update on this? Considering switching from NPM to this and I also use the unifi controller. |
@AmIBeingObtuse We are still working on it. We are really lacking on contributors to keep up with the issues with different open source projects being proxied so this issue might take a while to be handled. And yes, I can reproduce it in older docker version of Zoraxy with Unifi Controller But for v3.0.5, it seems everything working fine Btw, are you asking because you have tried out the v3.0.5 and have the same issue mentioned here? More inputs and sharing of debug attempts helps us fix issues faster :) |
Hi
Wish I had checked it before commenting. It works for me! I have my unifi
controller on unifi.myinternaldomain.com and works no issues (could never
get this working on NPM).
Just setup at a standard proxy with my wildcard ssl cert and its working.
also this is my first time with Zoraxy and I am blown away. I will be doing
a youtube video on this. Thanks! ***@***.*** in the next
week or so. One of my favourite features is that you provide a windows
binary.
…On Thu, 30 May 2024, 14:43 Toby Chui, ***@***.***> wrote:
@AmIBeingObtuse <https://github.com/AmIBeingObtuse> We are still working
on it. We are really lacking on contributors to keep up with the issues
with different open source projects being proxied so this issue might take
a while to be handled.
Btw, are you asking because you have tried out the v3.0.5 and have the
same issue mentioned here? More inputs and sharing of debug attempts helps
us fix issues faster :)
—
Reply to this email directly, view it on GitHub
<#115 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A2PH7LJ5HU53OEILNMETZXTZE4UHDAVCNFSM6AAAAABFQ3XYEGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZZGU4DOOJTGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Ok, then I guess I can close this now as the header bug fix in v3.0.5 also fixed this issue. |
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: