nixos/syncthing: fix declarative init crash on HTTPS

A previous config may be present that has HTTPS for the REST API enabled.
This commit is contained in:
Robin Stumm 2021-08-29 22:20:14 +02:00 committed by Bjørn Forsman
parent 1392ff98cc
commit 1dd3bd8728

View file

@ -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 \
"$@"
}