30 lines
682 B
Nginx Configuration File
30 lines
682 B
Nginx Configuration File
server {
|
|
listen 9178 ssl;
|
|
root /var/www/voice;
|
|
index index.html;
|
|
ssl_certificate /etc/voice/certs/cert.pem;
|
|
ssl_certificate_key /etc/voice/certs/key.pem;
|
|
|
|
location /token {
|
|
proxy_pass http://127.0.0.1:8091/token;
|
|
}
|
|
|
|
location = /livekit {
|
|
return 301 /livekit/;
|
|
}
|
|
|
|
location /livekit/ {
|
|
proxy_pass http://127.0.0.1:7880/;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
proxy_set_header Host $host;
|
|
proxy_read_timeout 3600s;
|
|
proxy_send_timeout 3600s;
|
|
}
|
|
|
|
location / {
|
|
try_files $uri $uri/ =404;
|
|
}
|
|
}
|