diff options
author | Robin Stumm <serverkorken@gmail.com> | 2021-08-29 22:20:14 +0200 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2021-08-31 11:27:51 +0200 |
commit | 1dd3bd8728bc31bc985d16087a2bd4fcf6e56d16 (patch) | |
tree | 31d07b737e76d4dd40aa5aae843b4ccc88895ac7 /nixos/modules/services/networking/syncthing.nix | |
parent | 1392ff98cc1f3e5fcb7c3a6b8c0c1be026f864f9 (diff) | |
download | nixpkgs-1dd3bd8728bc31bc985d16087a2bd4fcf6e56d16.tar nixpkgs-1dd3bd8728bc31bc985d16087a2bd4fcf6e56d16.tar.gz nixpkgs-1dd3bd8728bc31bc985d16087a2bd4fcf6e56d16.tar.bz2 nixpkgs-1dd3bd8728bc31bc985d16087a2bd4fcf6e56d16.tar.lz nixpkgs-1dd3bd8728bc31bc985d16087a2bd4fcf6e56d16.tar.xz nixpkgs-1dd3bd8728bc31bc985d16087a2bd4fcf6e56d16.tar.zst nixpkgs-1dd3bd8728bc31bc985d16087a2bd4fcf6e56d16.zip |
nixos/syncthing: fix declarative init crash on HTTPS
A previous config may be present that has HTTPS for the REST API enabled.
Diffstat (limited to 'nixos/modules/services/networking/syncthing.nix')
-rw-r--r-- | nixos/modules/services/networking/syncthing.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/syncthing.nix b/nixos/modules/services/networking/syncthing.nix index 1a1b12f979c..ebe4d89a0e7 100644 --- a/nixos/modules/services/networking/syncthing.nix +++ b/nixos/modules/services/networking/syncthing.nix @@ -37,7 +37,7 @@ let do sleep 1; done curl() { - ${pkgs.curl}/bin/curl -sS -H "X-API-Key: $api_key" \ + ${pkgs.curl}/bin/curl -sSLk -H "X-API-Key: $api_key" \ --retry 1000 --retry-delay 1 --retry-all-errors \ "$@" } |