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

Error while connecting to RPC Server "localhost" Using NGNIX #242

Open
manjotsc opened this issue Jan 15, 2025 · 3 comments
Open

Error while connecting to RPC Server "localhost" Using NGNIX #242

manjotsc opened this issue Jan 15, 2025 · 3 comments

Comments

@manjotsc
Copy link

manjotsc commented Jan 15, 2025

Version running
Ubuntu 24.04

Describe the bug
yt-dlp Web UI, works fine when access directly using http://192.168.80.45:3033

Running behing NGINX Proxy getting error: Error while connecting to RPC Server "localhost"

NGNIX Config

server {
    # Redirect HTTP to HTTPS
    listen 80;
    server_name youtube.example.net;
    return 301 https://$host$request_uri;
}

server {
    # Listen on HTTPS
    listen 443 ssl;
    server_name youtube.example.net;

    # SSL certificate paths (adjust these to match your certificate paths)
    ssl_certificate /root/.acme.sh/youtube.example.net_ecc/fullchain.cer;
    ssl_certificate_key /root/.acme.sh/youtube.example.net_ecc/youtube.example.net.key;

    # SSL protocols and ciphers
    ssl_protocols TLSv1.2 TLSv1.3;
    ssl_ciphers HIGH:!aNULL:!MD5;

    # Access and error logs
    access_log /var/log/nginx/youtube.example.net.access.log;
    error_log /var/log/nginx/youtube.example.net.error.log;

    # WebSocket proxy configuration
    location / {
        proxy_pass http://127.0.0.1:3033;
        proxy_http_version 1.1;

        # Upgrade header for WebSocket
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";

        # Pass host and IP information
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
             
           }


        # Timeout settings
        client_max_body_size    20000m;
        proxy_connect_timeout   3000;
        proxy_send_timeout      3000;
        proxy_read_timeout      3000;
        send_timeout            3000;
    }
}


Chrome Console

Screenshot 2025-01-15 022349

@manjotsc manjotsc changed the title Error while connecting to RPC Server "localhost" Error while connecting to RPC Server "localhost" Using NGNIX Jan 15, 2025
@manjotsc
Copy link
Author

Update: Settings -> Server Address; was set to ws://localhost change to it to ws://youtube.example.net fixed it.

How can I edit app name it's grey-out?
Screenshot 2025-01-15 142928

@manjotsc manjotsc changed the title Error while connecting to RPC Server "localhost" Using NGNIX [SOLVED ]Error while connecting to RPC Server "localhost" Using NGNIX Jan 15, 2025
@manjotsc manjotsc changed the title [SOLVED ]Error while connecting to RPC Server "localhost" Using NGNIX [SOLVED] Error while connecting to RPC Server "localhost" Using NGNIX Jan 15, 2025
@marcopiovanello
Copy link
Owner

Hi @manjotsc,

Latest image build should have the app title editable. (it's only client side atm) (next release will have app title as a server config)

@manjotsc
Copy link
Author

@marcopiovanello Thanks,

The issue has resurfaced. The last time I tested, I was using Edge, but the initial issue occurred on Chrome.

Chrome made changes to prevent unsecured WebSockets over SSL. I will test again later by routing the WebSocket through
Nginx.

I will provide an update once I have more information.

@manjotsc manjotsc changed the title [SOLVED] Error while connecting to RPC Server "localhost" Using NGNIX Error while connecting to RPC Server "localhost" Using NGNIX Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants