question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Web request redirected to turn server on fresh Debian10 Installation

See original GitHub issue

Description

After an upgrade my installation stopped working with a 502 error. I then did a fresh reinstalled and observed the exact same behaviour. It seems like /etc/nginx/modules-enabled/60-jitsi-meet.conf does exactly the configured behaviour and redirects all traffic per default to the turnserver:

    upstream web {
        server 127.0.0.1:4444;
    }
    upstream turn {
        server 127.0.0.1:4445;
    }
    # since 1.13.10
    map $ssl_preread_alpn_protocols $upstream {
        ~\bh2\b         web;
        ~\bhttp/1\.     web;
        default         turn;
    }

The nginx error log (on the jitsi vm):

2020/04/24 16:08:38 [error] 1066#1066: *75 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.101.111, server: 0.0.0.0:443, upstream: "127.0.0.1:4445", bytes from/to client:0/0, bytes from/to upstream:0/0

Current behavior

nginx redirects main page and room links to turn server

Expected Behavior

I would like to see the welcome page

Possible Solution

Fix the nginx config

Steps to reproduce

Do a fresh install on debian 10.3

Environment details

Debian 10.3 behind a NAT and web proxy.

client <-- [https] --> web proxy <–[https]–> jitsi vm

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
ghostcommented, May 18, 2020

The default here seems to be wrong, a lot of HTTP clients don’t supply the ALPN extension. This may be a possible fix although I haven’t tested extensively yet (see RFC7743):

    map $ssl_preread_alpn_protocols $upstream {
        ~\bstun\.turn\b  turn;
        default          web;
    }
1reaction
dpooncommented, Apr 26, 2020

What web proxy are you using, and is it capable of doing ALPN?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Install Nginx on Debian 10
The web server should already be up and running. You can check with the systemd init system to make sure the service is...
Read more >
UDP port 10000 blocked behind corporate firewall ...
Web request redirected to turn server on fresh Debian10 Installation · Separate jitsi-meet front and other components. · do not use coturn.
Read more >
How to Redirect HTTP to HTTPS in Nginx
Nginx Redirect all HTTP traffic to HTTPS. Open the Nginx configuration file for editing, then insert the following code: server { listen 80 ......
Read more >
Debian 10 Set Up OpenVPN Server In 5 Minutes
I am a new Debian Linux 10 server user. How do I set up an OpenVPN Server on Debian Linux ... Run debian10-vpn.sh...
Read more >
How to Install Mailman 3 on a Debian 10 Server.
Webserver Installation: NGINX ... 1. Both Django, Postorius, and Hyperkitty requires a web server. So let's install NGINX. ... 2. Now that Nginx...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found