2020-01-09 16:51:27 +00:00
|
|
|
# this is jitsi-meet nginx module configuration
|
|
|
|
# this forward all http traffic to the nginx virtual host port
|
|
|
|
# and the rest to the turn server
|
|
|
|
|
|
|
|
stream {
|
|
|
|
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 {
|
2020-04-05 14:23:43 +00:00
|
|
|
~\bh2\b web;
|
|
|
|
~\bhttp/1\. web;
|
2020-01-09 16:51:27 +00:00
|
|
|
default turn;
|
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 443;
|
|
|
|
|
|
|
|
# since 1.11.5
|
|
|
|
ssl_preread on;
|
|
|
|
proxy_pass $upstream;
|
|
|
|
|
|
|
|
# Increase buffer to serve video
|
|
|
|
proxy_buffer_size 10m;
|
|
|
|
}
|
|
|
|
}
|