mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
wstunnel: the ping frequency can now also be configured for the server
See: https://github.com/erebe/wstunnel/pull/338
This commit is contained in:
parent
1f20f29afc
commit
20291241fd
1 changed files with 8 additions and 7 deletions
|
@ -48,6 +48,13 @@ let
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# The original argument name `websocketPingFrequency` is a misnomer, as the frequency is the inverse of the interval.
|
||||||
|
websocketPingInterval = lib.mkOption {
|
||||||
|
description = "Frequency at which the client will send websocket ping to the server.";
|
||||||
|
type = lib.types.nullOr lib.types.ints.unsigned;
|
||||||
|
default = null;
|
||||||
|
};
|
||||||
|
|
||||||
loggingLevel = lib.mkOption {
|
loggingLevel = lib.mkOption {
|
||||||
description = ''
|
description = ''
|
||||||
Passed to --log-lvl
|
Passed to --log-lvl
|
||||||
|
@ -232,13 +239,6 @@ let
|
||||||
default = true;
|
default = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# The original argument name `websocketPingFrequency` is a misnomer, as the frequency is the inverse of the interval.
|
|
||||||
websocketPingInterval = lib.mkOption {
|
|
||||||
description = "Frequency at which the client will send websocket ping to the server.";
|
|
||||||
type = lib.types.nullOr lib.types.ints.unsigned;
|
|
||||||
default = null;
|
|
||||||
};
|
|
||||||
|
|
||||||
upgradeCredentials = lib.mkOption {
|
upgradeCredentials = lib.mkOption {
|
||||||
description = ''
|
description = ''
|
||||||
Use these credentials to authenticate during the HTTP upgrade request
|
Use these credentials to authenticate during the HTTP upgrade request
|
||||||
|
@ -321,6 +321,7 @@ let
|
||||||
tls-certificate =
|
tls-certificate =
|
||||||
if useACMEHost != null then "${certConfig.directory}/fullchain.pem" else "${tlsCertificate}";
|
if useACMEHost != null then "${certConfig.directory}/fullchain.pem" else "${tlsCertificate}";
|
||||||
tls-private-key = if useACMEHost != null then "${certConfig.directory}/key.pem" else "${tlsKey}";
|
tls-private-key = if useACMEHost != null then "${certConfig.directory}/key.pem" else "${tlsKey}";
|
||||||
|
websocket-ping-frequency-sec = websocketPingInterval;
|
||||||
} extraArgs
|
} extraArgs
|
||||||
)
|
)
|
||||||
} \
|
} \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue