Skip to content
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

[ENHANCEMENTS] Websocket support (i think?) #17

Closed
danmed opened this issue Jun 5, 2023 · 6 comments
Closed

[ENHANCEMENTS] Websocket support (i think?) #17

danmed opened this issue Jun 5, 2023 · 6 comments
Labels
enhancement New feature or request

Comments

@danmed
Copy link

danmed commented Jun 5, 2023

When i use Zoraxy to reverse proxy proxmox (for example) the consoles on the vm's don't work.

I believe this is down to web sockets though i could be way off..

@danmed danmed added the enhancement New feature or request label Jun 5, 2023
@Morethanevil
Copy link
Contributor

Chrome based Browser or Firefox? Does private mode work with addons disabled?

What does happen when you open the console?

You could try it with Firefox portable. If it works there, then it has something to do with your Browser 🤔

@tobychui
Copy link
Owner

tobychui commented Jun 6, 2023

By default, all the proxy endpoints (vdir or subdomain) supports websocket reverse proxy automatically (by checking the UPGRADE headers).
The issue you are having here should be a problem with the browser you are using. In the case where you are using another reverse proxy in-front or behind Zoraxy, there might be invalid config that altered the UPGRADE header in the request.

@danmed
Copy link
Author

danmed commented Jun 7, 2023

By default, all the proxy endpoints (vdir or subdomain) supports websocket reverse proxy automatically (by checking the UPGRADE headers). The issue you are having here should be a problem with the browser you are using. In the case where you are using another reverse proxy in-front or behind Zoraxy, there might be invalid config that altered the UPGRADE header in the request.

Interesting.. whilst i'm not in the know enough to argue with you.. it's the same browser i use when i use NPM.. (but then maybe that's the issue).. let me bring up a clean browser and ill come back to you.

@PMFRTT
Copy link

PMFRTT commented Jul 1, 2023

Hi, I'm having a similar issue when trying to connect from my phone to my unifi controller via the app through zoraxy. It seems I cannot access it through zoraxy. It worked when i used NPM and also works when trying to connect via IP:PORT, skipping over zoraxy.

Here is a screenshot of the issue in App:
Screenshot_20230701_221539~2.jpg

Currently not at home, will add logs of zoraxy as soon as I can.

@tobychui
Copy link
Owner

tobychui commented Jul 2, 2023

@PMFRTT You sure this is a Websocket issue? I have done a simple google search which leads me to this post regarding the nginx config for unified.

As the config comments says
# The lack of '/' at the end is significant.
I guess this might be an issue where the unified app is calling to an API without tailing slash while zoraxy is trying to patch the tailing slash for you. If you confirm this is not a websocket issue, please open a new issue for this problem and I will see how can I help debug it further. Thanks for reporting a new issue!

@tobychui
Copy link
Owner

Closing as this cannot be reproduced. (Please let me know to re-open this if there are further related issues)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants