This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

covibe: raise nginx idle timeout for relay websockets

+12
+12
2configs/covibe.nix
··· 84 84 services.nginx.virtualHosts.${domain} = { 85 85 enableACME = true; 86 86 forceSSL = true; 87 + # Collab relay websockets (/r/<roomId>) are long-lived and idle between 88 + # turns; neither the relay nor omp send keepalive pings, so nginx's default 89 + # 60s proxy_read_timeout would sever idle sessions and trigger omp's 90 + # "connection lost, reconnecting" loop. Give the relay a long idle window. 91 + locations."/r/" = { 92 + proxyPass = "http://127.0.0.1:${toString port}"; 93 + proxyWebsockets = true; 94 + extraConfig = '' 95 + proxy_read_timeout 1d; 96 + proxy_send_timeout 1d; 97 + ''; 98 + }; 87 99 locations."/" = { 88 100 proxyPass = "http://127.0.0.1:${toString port}"; 89 101 proxyWebsockets = true;