0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

nixos/cloudflared: fix cert.pem installation

There was a typo in the systemd service definition for cloudflared which
meant that the cert.pem file was not being correctly exposed.
This commit is contained in:
Pedro Alves 2025-05-14 20:13:18 +01:00
parent d420cf07b4
commit 75c7d0908e

View file

@ -369,7 +369,7 @@ in
RuntimeDirectoryMode = "0400";
LoadCredential = [
"credentials.json:${tunnel.credentialsFile}"
] ++ (lib.optional (certFile != null) "cert.pem:certFile");
] ++ (lib.optional (certFile != null) "cert.pem:${certFile}");
ExecStart = "${cfg.package}/bin/cloudflared tunnel --config=${mkConfigFile} --no-autoupdate run";
Restart = "on-failure";