Commit 75c7d090 authored by Pedro Alves's avatar Pedro Alves
Browse files

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.
parent d420cf07
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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";