From 79c43434f4b59101b947c19c4ed3f66c79101aa7 Mon Sep 17 00:00:00 2001 From: Christine Elisabeth Koppel Date: Tue, 3 Mar 2026 14:18:05 +0100 Subject: [PATCH] More fixes... --- nix-system-configs/modules/system/traefik.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nix-system-configs/modules/system/traefik.nix b/nix-system-configs/modules/system/traefik.nix index fdcc0c9..0123ff2 100644 --- a/nix-system-configs/modules/system/traefik.nix +++ b/nix-system-configs/modules/system/traefik.nix @@ -711,11 +711,11 @@ in { ########################################### ## Change the IP@Cloudflare using the API ########################################### - update=$(${pkgs.curl}/bin/curl -sS -o - -w '\nHTTP_STATUS:%{http_code}' -X PATCH "https://api.cloudflare.com/client/v4/zones/''$zone_identifier/dns_records/''$record_identifier" \ - -H "X-Auth-Email: ''$auth_email" \ - -H "''$auth_header ''$auth_key" \ + update=$(${pkgs.curl}/bin/curl -sS -o - -w '\nHTTP_STATUS:%{http_code}' -X PATCH "https://api.cloudflare.com/client/v4/zones/$zone_identifier/dns_records/$record_identifier" \ + -H "X-Auth-Email: $auth_email" \ + -H "$auth_header $auth_key" \ -H "Content-Type: application/json" \ - --data "{\"type\":\"A\",\"name\":\"''$record_name\",\"content\":\"''$CURRENT_IP\",\"ttl\":''$ttl,\"proxied\":''${proxy}}" 2>&1) + --data "{\"type\":\"A\",\"name\":\"$record_name\",\"content\":\"$CURRENT_IP\",\"ttl\":$ttl,\"proxied\":''${proxy}}" 2>&1) CURL_EXIT=$? ${pkgs.util-linux}/bin/logger -s "DDNS Updater: Cloudflare PATCH exit=$CURL_EXIT response=$update"