lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #195190 from Ma27/coturn-replace-secret

nixos/coturn: refactor secret injection

authored by

Franz Pletz and committed by
GitHub
8a86d9d4 377db224

+4 -3
+4 -3
nixos/modules/services/networking/coturn.nix
··· 335 335 preStart = '' 336 336 cat ${configFile} > ${runConfig} 337 337 ${optionalString (cfg.static-auth-secret-file != null) '' 338 - STATIC_AUTH_SECRET="$(head -n1 ${cfg.static-auth-secret-file} || :)" 339 - sed -e "s,#static-auth-secret#,$STATIC_AUTH_SECRET,g" \ 340 - -i ${runConfig} 338 + ${pkgs.replace-secret}/bin/replace-secret \ 339 + "#static-auth-secret#" \ 340 + ${cfg.static-auth-secret-file} \ 341 + ${runConfig} 341 342 '' } 342 343 chmod 640 ${runConfig} 343 344 '';