-
-
Notifications
You must be signed in to change notification settings - Fork 331
Fixing jdownloader websockets #774
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Thanks but have you tested this? I do realize what we had before was incorrect, but the proposed fix also looks incorrect. The reason is, when you use a variable in the proxy_pass line, nginx has this weird behavior where it automatically appends the |
@aptalca Yes, currently using it and it works for me. |
i did not test (i dont use jdownloader), but i did look through jdownloaders forums and saw similar suggestions for npm and pure nginx. I will add, i saw a websocket path for audio as well, which we lack. i didnt mention it because im not sure our container even supports the audio portion, again, never used this :D |
Right, unfortunately most of those guides use an IP or a dns hostname so they don't hit that weird behavior. We use vars to make sure nginx doesn't complain and refuse to start when a proxied service is not up or reachable. Another weird nginx behavior. That's why when we have a separate server block for api endpoints that bypass auth, we don't add But if it works, I'm ok with merging it. @therobbiedavis can you update the date on the first line as well so it shows up in SWAG log as a conf that needs an update? Thanks |
@aptalca Done. |
Description
Websockets were failing when trying to connect via reverse proxy
Benefits of this PR and context
Fixes websocket failing to connect.
How Has This Been Tested?
Once change was applied websockets were able to connect.
Source / References
jlesage/docker-jdownloader-2#265 (comment)