small fixes
This commit is contained in:
5 files changed
+38
-44
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user