diff --git a/docs/options.md b/docs/options.md
index 44d9cf0..a65f173 100644
--- a/docs/options.md
+++ b/docs/options.md
@@ -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
-
-## 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)
-
-
-
## services\.proxy-suite\.tray\.enable
diff --git a/modules/proxy-suite/options/other.nix b/modules/proxy-suite/options/other.nix
index 11ee97f..29863f7 100644
--- a/modules/proxy-suite/options/other.nix
+++ b/modules/proxy-suite/options/other.nix
@@ -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;
diff --git a/modules/proxy-suite/tg-ws-proxy.nix b/modules/proxy-suite/tg-ws-proxy.nix
index fd12d5c..2e7a32b 100644
--- a/modules/proxy-suite/tg-ws-proxy.nix
+++ b/modules/proxy-suite/tg-ws-proxy.nix
@@ -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[@]}"
'';
diff --git a/nix/checks.nix b/nix/checks.nix
index 245f400..b990bcd 100644
--- a/nix/checks.nix
+++ b/nix/checks.nix
@@ -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
)
(