small fixes

This commit is contained in:
FUFSoB committed 2026-04-22 16:02:31 +05:00
1 parent 65e815e6dc
commit b696821d8c
5 files changed
+38 -44

No files matched your search

+5 -3
View File
@@ -10,16 +10,18 @@ let
t = cfg.tgWsProxy;
tgPkg = packages.tg-ws-proxy;
dcArgs = lib.concatMapStrings (id: " --dc-ip=${id}:${t.dcIps.${id}}") (builtins.attrNames t.dcIps);
dcArgs = lib.concatMapStrings
(id: " --dc-ip=${lib.escapeShellArg "${id}:${t.dcIps.${id}}"}")
(builtins.attrNames t.dcIps);
startScript = pkgs.writeShellScript "proxy-suite-tg-ws-proxy-start" ''
exec ${tgPkg}/bin/tg-ws-proxy \
--port=${toString t.port} \
--host=${t.host} \
--host=${lib.escapeShellArg t.host} \
${
if t.secretFile != null then
"--secret-file=$CREDENTIALS_DIRECTORY/tg_ws_proxy_secret"
else
"--secret=${t.secret}"
"--secret=${lib.escapeShellArg t.secret}"
}${dcArgs}
'';
in