From b5475346e2526297c9556a6a1fbb753ba487a709 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Mon, 4 Aug 2025 01:36:30 +0200 Subject: [PATCH] nixos/tailscale-derper: drop unused keepalive_timeout, bump proxy_read_timeout to an hour Otherwise derper reconnects every 60s which still works good enough but spams the logs with lots of noise and it probably improves stability, too. --- nixos/modules/services/networking/tailscale-derper.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/nixos/modules/services/networking/tailscale-derper.nix b/nixos/modules/services/networking/tailscale-derper.nix index 6e172a40a529..3f8c788f7f52 100644 --- a/nixos/modules/services/networking/tailscale-derper.nix +++ b/nixos/modules/services/networking/tailscale-derper.nix @@ -82,10 +82,11 @@ in locations."/" = { proxyPass = "http://127.0.0.1:${toString cfg.port}"; proxyWebsockets = true; - extraConfig = '' - keepalive_timeout 0; - proxy_buffering off; - ''; + extraConfig = # nginx + '' + proxy_buffering off; + proxy_read_timeout 3600s; + ''; }; }; };