Skip to content

Conversation

folklor33
Copy link

@folklor33 folklor33 commented Aug 20, 2025

Fix JDownloader websocket configuration for proper VNC display

linuxserver.io

  • I have read the contributing guideline and understand that I have made the correct modifications

Description

Fixed JDownloader websocket configuration to properly handle VNC display connections. The current configuration causes websocket connection failures with "invalid URL prefix" errors, preventing the VNC interface from loading.

Added specific websocket location blocks with proper headers and timeout configurations to ensure reliable VNC connections through the reverse proxy.

Benefits of this PR and context

  • Fixes VNC display issues: Users can now properly access the JDownloader GUI through the web interface
  • Resolves websocket errors: Eliminates "invalid URL prefix in '://:/websockify'" errors in nginx logs
  • Improves user experience: No more blank screens or connection timeouts when accessing JDownloader
  • Maintains backward compatibility: Existing configurations continue to work while adding enhanced websocket support

This addresses a common issue where users experience blank screens or connection failures when trying to access JDownloader through the reverse proxy, particularly affecting the VNC/web interface functionality.

How Has This Been Tested?

  • Environment: Docker Swag + JDownloader 2 container (jlesage/jdownloader-2)
  • Network: Custom Docker bridge network with Authelia authentication
  • Testing steps:
    1. Applied the original configuration - confirmed VNC display failure with websocket errors
    2. Applied the fixed configuration - confirmed working VNC display and successful websocket connections
    3. Tested with and without Authelia authentication - both scenarios work correctly
    4. Verified nginx logs show successful websocket upgrades instead of "invalid URL prefix" errors
    5. Tested multiple browser connections and reconnections - all stable

Source / References

  • Issue identified through nginx error logs showing websocket connection failures
  • Solution developed based on proper websocket proxy configuration patterns
  • Tested in production environment with successful results

Fix JDownloader websocket configuration for proper VNC display
@Roxedus
Copy link
Member

Roxedus commented Aug 20, 2025

does #774 not do it?

@folklor33
Copy link
Author

does #774 not do it?

yoooups...

@folklor33 folklor33 closed this Aug 20, 2025
@LinuxServer-CI LinuxServer-CI moved this from PRs to Done in Issue & PR Tracker Aug 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants