fix: remove tgwsproxy keepalive option - removed from upstream

This commit is contained in:
FUFSoB committed 2026-06-29 22:29:28 +05:00
1 parent 89fbff9eb1
commit 5b185114b6
4 files changed
+1 -61

No files matched your search

-37
View File
@@ -142,7 +142,6 @@ Update module option docs there instead of editing this file by hand.
- [secret](#services-proxy-suite-tgwsproxy-secret)
- [secretFile](#services-proxy-suite-tgwsproxy-secretfile)
- [verbose](#services-proxy-suite-tgwsproxy-verbose)
- [wsKeepalive](#services-proxy-suite-tgwsproxy-wskeepalive)
- tray
- [enable](#services-proxy-suite-tray-enable)
- [autostart](#services-proxy-suite-tray-autostart)
@@ -318,7 +317,6 @@ services.proxy-suite = {
secret = null;
secretFile = null;
verbose = false;
wsKeepalive = 30.0;
};
tray = {
autostart = true;
@@ -588,7 +586,6 @@ services.proxy-suite = {
secret = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
secretFile = "/run/secrets/tg-ws-proxy-secret";
verbose = true;
wsKeepalive = 15.0;
};
tray = {
autostart = true;
@@ -4670,40 +4667,6 @@ true
<a id="services-proxy-suite-tgwsproxy-wskeepalive"></a>
## services\.proxy-suite\.tgWsProxy\.wsKeepalive
Seconds between upstream WebSocket keepalive pings\.
Set to 0 to disable keepalive pings\.
*Type:*
nonnegative integer or floating point number, meaning >=0
*Default:*
```nix
30.0
```
*Example:*
```nix
15.0
```
*Declared by:*
- [modules/proxy-suite/options/other\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/other.nix)
<a id="services-proxy-suite-tray-enable"></a>
## services\.proxy-suite\.tray\.enable
-10
View File
@@ -243,16 +243,6 @@ in
example = true;
};
wsKeepalive = mkOption {
type = types.numbers.nonnegative;
default = 30.0;
description = ''
Seconds between upstream WebSocket keepalive pings.
Set to 0 to disable keepalive pings.
'';
example = 15.0;
};
bypassTransparentProxy = mkOption {
type = types.bool;
default = true;
+1 -1
View File
@@ -44,7 +44,7 @@ let
mkFlagArg (!t.cfProxyFallback) "--no-cfproxy"
}${
mkOptionalValueArg (t.fakeTlsDomain != null) "--fake-tls-domain" t.fakeTlsDomain
}${mkFlagArg t.proxyProtocol "--proxy-protocol"}${mkRawValueArg "--ws-keepalive" t.wsKeepalive}
}${mkFlagArg t.proxyProtocol "--proxy-protocol"}
exec ${tgPkg}/bin/tg-ws-proxy "''${args[@]}"
'';
-13
View File
@@ -700,7 +700,6 @@ let
cfProxyFallback = false;
fakeTlsDomain = "mask.example.com";
proxyProtocol = true;
wsKeepalive = 0;
};
}
];
@@ -784,16 +783,6 @@ let
}
];
tgInvalidWsKeepalive = mkBadFixture [
{
services.proxy-suite.tgWsProxy = {
enable = true;
secretFile = "/run/secrets/tg-ws-proxy";
wsKeepalive = -1;
};
}
];
duplicateTags = forceEval (
(mkFixture {
enable = true;
@@ -2198,11 +2187,9 @@ let
assert pkgs.lib.hasInfix "--no-cfproxy" tgAllOptionsStartScript;
assert pkgs.lib.hasInfix "--fake-tls-domain=mask.example.com" tgAllOptionsStartScript;
assert pkgs.lib.hasInfix "--proxy-protocol" tgAllOptionsStartScript;
assert pkgs.lib.hasInfix "--ws-keepalive=0" tgAllOptionsStartScript;
assert tgInvalidBufKb.success == false;
assert tgInvalidPoolSize.success == false;
assert tgInvalidLogBackups.success == false;
assert tgInvalidWsKeepalive.success == false;
true
)
(