ntfy: add a lengthy proxy_read_timeout to prevent hangups

This commit is contained in:
2023-09-27 18:25:27 +00:00
parent ebbef901c1
commit 9a16b1cda7

View File

@@ -78,8 +78,13 @@ in
];
locations."/" = {
proxyPass = "http://127.0.0.1:2586";
recommendedProxySettings = true; #< adds headers so ntfy logs include the real IP
proxyWebsockets = true; #< support websocket upgrades. without that, `ntfy sub` hangs silently
recommendedProxySettings = true; #< adds headers so ntfy logs include the real IP
extraConfig = ''
# absurdly long timeout (86400s=24h) so that we never hang up on clients.
# make sure the client is smart enough to detect a broken proxy though!
proxy_read_timeout 86400s;
'';
};
};
sane.dns.zones."uninsane.org".inet.CNAME."ntfy" = "native";