31 lines
694 B
Plaintext
31 lines
694 B
Plaintext
map $http_upgrade $connection_upgrade {
|
|
default upgrade;
|
|
'' close;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
|
|
server_name live.umm.gay;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/live.umm.gay/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/live.umm.gay/privkey.pem;
|
|
|
|
location / {
|
|
proxy_pass http://127.0.0.1:3000/;
|
|
}
|
|
|
|
location ^~ /api/whip-server {
|
|
proxy_pass http://127.0.0.1:3001/;
|
|
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection $connection_upgrade;
|
|
proxy_set_header Host $host;
|
|
proxy_connect_timeout 1d;
|
|
proxy_send_timeout 1d;
|
|
proxy_read_timeout 1d;
|
|
}
|
|
}
|