diff --git a/Update-DockerStacks-n8n.ps1 b/Update-DockerStacks-n8n.ps1 index 0719d00..eb25f66 100644 --- a/Update-DockerStacks-n8n.ps1 +++ b/Update-DockerStacks-n8n.ps1 @@ -88,13 +88,24 @@ Write-Host "All requested updates finished." -ForegroundColor Cyan Stop-Transcript $LogContent = Get-Content "$env:TEMP\docker_update_log.txt" -Raw -# Send to n8n (Replace the URL with your actual n8n Webhook URL) +# Send to n8n $WebhookUrl = "https://n8n.mohandl3g.ly/webhook/dockerupdater" + +# --- SECURITY CONFIGURATION --- +$AuthHeaderName = "MohandL3G-Auth" +$AuthHeaderValue = "Ms@199903" +# ------------------------------ + +$Headers = @{ + $AuthHeaderName = $AuthHeaderValue +} + $Body = @{ status = "complete" service = "DockerUpdater" output = $LogContent } -Invoke-RestMethod -Uri $WebhookUrl -Method Post -Body ($Body | ConvertTo-Json) -ContentType "application/json" +# Added -Headers parameter here +Invoke-RestMethod -Uri $WebhookUrl -Method Post -Body ($Body | ConvertTo-Json) -ContentType "application/json" -Headers $Headers # --------------------- \ No newline at end of file