livekit añadido

This commit is contained in:
2025-11-11 00:54:43 +00:00
parent d873b13060
commit 60a7385b76
8 changed files with 184 additions and 22 deletions
+15 -1
View File
@@ -1,6 +1,14 @@
server {
listen 80;
server_name matrix-rtc.localhost;
server_name _;
add_header Access-Control-Allow-Origin * always;
add_header Access-Control-Allow-Methods "GET, POST, OPTIONS" always;
add_header Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept, Authorization" always;
if ($request_method = OPTIONS) {
return 204;
}
# MatrixRTC Authorization Service (lk-jwt-service)
location ^~ /livekit/jwt/ {
@@ -8,6 +16,9 @@ server {
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;
add_header Access-Control-Allow-Origin * always;
add_header Access-Control-Allow-Methods "GET, POST, OPTIONS" always;
add_header Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept, Authorization" always;
proxy_pass http://livekit-jwt:6080/;
}
@@ -21,6 +32,9 @@ server {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Accept-Encoding gzip;
add_header Access-Control-Allow-Origin * always;
add_header Access-Control-Allow-Methods "GET, POST, OPTIONS" always;
add_header Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept, Authorization" always;
proxy_send_timeout 120;
proxy_read_timeout 120;