Giter Club home page Giter Club logo

Comments (10)

davidzhao avatar davidzhao commented on May 16, 2024 2

today, you'd have to use a separate reverse proxy such as nginx. we'll share some examples of this in the near future.

from livekit.

yelban avatar yelban commented on May 16, 2024 1

It's work!
create new nginx site with new ssl,
Use the following official LiveKit nginx configuration file example
https://raw.githubusercontent.com/livekit/livekit-server/master/deploy/livekit.nginx.conf

from livekit.

davidzhao avatar davidzhao commented on May 16, 2024

@rjahrj unfortunately, there isn't a way to get around the SSL requirement imposed by browsers. If you have a reverse proxy terminating SSL in front of the signal connection, ensure that it's a certificate issued by a Certificate Authority, and not self-signed. See deployment guide for more info on this topic.

from livekit.

yelban avatar yelban commented on May 16, 2024

Do I have to enable reverse proxy separately to enable TLS WSS?

Is there any way to set the wss TLS certificate path?

from livekit.

yelban avatar yelban commented on May 16, 2024

Thanks @davidzhao , this is exactly what I needed.

from livekit.

AlexanderKozhevin avatar AlexanderKozhevin commented on May 16, 2024

@davidzhao it would be great. I'm struggling too with setting up nginx.

from livekit.

davidzhao avatar davidzhao commented on May 16, 2024

@yelban @AlexanderKozhevin check this out

https://docs.livekit.io/guides/deploy/instance

from livekit.

yelban avatar yelban commented on May 16, 2024

Thanks @davidzhao . If there is already a running vm on vultr and nginx with SSL certs running, how do I get nginx to proxy livekit's wss tls?

Is there anything to fix in this setting?

docker run --rm \
    -p 7880:7880 \
    -p 7881:7881 \
    -p 7882:7882/udp \
    -e LIVEKIT_KEYS="APITU46V...: 21uB5TW..." \
    livekit/livekit-server \
    --dev

/etc/nginx/site-enable/server1

map $http_upgrade $connection_upgrade {
    default upgrade;
    '' close;
}

upstream websocket {
    server 167.179.82.91:7881;
}

proxy_headers_hash_max_size 51200;
proxy_headers_hash_bucket_size 6400;

server {
    listen 443 ssl http2;

    # RSA certificate
    ssl_certificate /etc/letsencrypt/live/server1/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/server1/privkey.pem;

    location /wss {
  
          proxy_pass http://websocket;
  
          proxy_http_version 1.1;
          proxy_set_header Upgrade $http_upgrade;
          proxy_set_header Connection "upgrade";
          proxy_cache_bypass $http_upgrade;
    }

}

the liveKit-server error log after stop docker container running
udp_mux ERROR: 2021/10/08 06:28:11 could not read udp packet: read udp4 0.0.0.0:7882: use of closed network connection

from livekit.

davidzhao avatar davidzhao commented on May 16, 2024

awesome, glad to hear it worked!

from livekit.

rajil avatar rajil commented on May 16, 2024

where can i find livekit.nginx.conf?

from livekit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.