fix: remove tgwsproxy keepalive option - removed from upstream
This commit is contained in:
4 files changed
+1
-61
No files matched your search
@@ -142,7 +142,6 @@ Update module option docs there instead of editing this file by hand.
|
|||||||
- [secret](#services-proxy-suite-tgwsproxy-secret)
|
- [secret](#services-proxy-suite-tgwsproxy-secret)
|
||||||
- [secretFile](#services-proxy-suite-tgwsproxy-secretfile)
|
- [secretFile](#services-proxy-suite-tgwsproxy-secretfile)
|
||||||
- [verbose](#services-proxy-suite-tgwsproxy-verbose)
|
- [verbose](#services-proxy-suite-tgwsproxy-verbose)
|
||||||
- [wsKeepalive](#services-proxy-suite-tgwsproxy-wskeepalive)
|
|
||||||
- tray
|
- tray
|
||||||
- [enable](#services-proxy-suite-tray-enable)
|
- [enable](#services-proxy-suite-tray-enable)
|
||||||
- [autostart](#services-proxy-suite-tray-autostart)
|
- [autostart](#services-proxy-suite-tray-autostart)
|
||||||
@@ -318,7 +317,6 @@ services.proxy-suite = {
|
|||||||
secret = null;
|
secret = null;
|
||||||
secretFile = null;
|
secretFile = null;
|
||||||
verbose = false;
|
verbose = false;
|
||||||
wsKeepalive = 30.0;
|
|
||||||
};
|
};
|
||||||
tray = {
|
tray = {
|
||||||
autostart = true;
|
autostart = true;
|
||||||
@@ -588,7 +586,6 @@ services.proxy-suite = {
|
|||||||
secret = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
|
secret = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
|
||||||
secretFile = "/run/secrets/tg-ws-proxy-secret";
|
secretFile = "/run/secrets/tg-ws-proxy-secret";
|
||||||
verbose = true;
|
verbose = true;
|
||||||
wsKeepalive = 15.0;
|
|
||||||
};
|
};
|
||||||
tray = {
|
tray = {
|
||||||
autostart = true;
|
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>
|
<a id="services-proxy-suite-tray-enable"></a>
|
||||||
## services\.proxy-suite\.tray\.enable
|
## services\.proxy-suite\.tray\.enable
|
||||||
|
|
||||||
|
|||||||
@@ -243,16 +243,6 @@ in
|
|||||||
example = true;
|
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 {
|
bypassTransparentProxy = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = true;
|
default = true;
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ let
|
|||||||
mkFlagArg (!t.cfProxyFallback) "--no-cfproxy"
|
mkFlagArg (!t.cfProxyFallback) "--no-cfproxy"
|
||||||
}${
|
}${
|
||||||
mkOptionalValueArg (t.fakeTlsDomain != null) "--fake-tls-domain" t.fakeTlsDomain
|
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[@]}"
|
exec ${tgPkg}/bin/tg-ws-proxy "''${args[@]}"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|||||||
@@ -700,7 +700,6 @@ let
|
|||||||
cfProxyFallback = false;
|
cfProxyFallback = false;
|
||||||
fakeTlsDomain = "mask.example.com";
|
fakeTlsDomain = "mask.example.com";
|
||||||
proxyProtocol = true;
|
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 (
|
duplicateTags = forceEval (
|
||||||
(mkFixture {
|
(mkFixture {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -2198,11 +2187,9 @@ let
|
|||||||
assert pkgs.lib.hasInfix "--no-cfproxy" tgAllOptionsStartScript;
|
assert pkgs.lib.hasInfix "--no-cfproxy" tgAllOptionsStartScript;
|
||||||
assert pkgs.lib.hasInfix "--fake-tls-domain=mask.example.com" tgAllOptionsStartScript;
|
assert pkgs.lib.hasInfix "--fake-tls-domain=mask.example.com" tgAllOptionsStartScript;
|
||||||
assert pkgs.lib.hasInfix "--proxy-protocol" tgAllOptionsStartScript;
|
assert pkgs.lib.hasInfix "--proxy-protocol" tgAllOptionsStartScript;
|
||||||
assert pkgs.lib.hasInfix "--ws-keepalive=0" tgAllOptionsStartScript;
|
|
||||||
assert tgInvalidBufKb.success == false;
|
assert tgInvalidBufKb.success == false;
|
||||||
assert tgInvalidPoolSize.success == false;
|
assert tgInvalidPoolSize.success == false;
|
||||||
assert tgInvalidLogBackups.success == false;
|
assert tgInvalidLogBackups.success == false;
|
||||||
assert tgInvalidWsKeepalive.success == false;
|
|
||||||
true
|
true
|
||||||
)
|
)
|
||||||
(
|
(
|
||||||
|
|||||||
Reference in new issue
Block a user