Comments (10)
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.
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.
@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.
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.
Thanks @davidzhao , this is exactly what I needed.
from livekit.
@davidzhao it would be great. I'm struggling too with setting up nginx.
from livekit.
@yelban @AlexanderKozhevin check this out
https://docs.livekit.io/guides/deploy/instance
from livekit.
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.
awesome, glad to hear it worked!
from livekit.
where can i find livekit.nginx.conf?
from livekit.
Related Issues (20)
- Participant pair can not be selected HOT 2
- activeSpeakers array contains stale references if participant disconnects while speaking
- Disconnected without doing anything HOT 1
- Disconnected without doing anything HOT 3
- If deploy on server, how many people can support at same time on a 4GB memory server? HOT 2
- How to have multiple people on the same call HOT 3
- What is a `Track` as Mentioned in the React Documentation?
- How to add third party participants with a single "sendrecv" PeerConnection
- Calling ParticipantLeft twice HOT 1
- How to distinguish different audio tracks?
- nat issue HOT 1
- nat issue
- Participant counting API returns negative values HOT 1
- Others could hear my voice but I couldn't hear others' voices when I minimized the webview on iOS.
- Occasional bug, after livekit has been running for a week, room creation error: could not find any available nodes HOT 5
- how to reduce noise and echo HOT 2
- 正式下老是容易链接失败 HOT 1
- Question: GPU Support for transcoding (NVEnc)
- When the Android client uses H264 encoding, the video resolution is lower than the published resolution, causing a green screen problem. HOT 3
- Wrong connnectionQuality state HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from livekit.