]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Allow set gzip, keepalive and no_ssl_verify in metadata_exporter module 5246/head
authorDmitriy Alekseev <1865999+dragoangel@users.noreply.github.com>
Thu, 5 Dec 2024 20:11:50 +0000 (21:11 +0100)
committerGitHub <noreply@github.com>
Thu, 5 Dec 2024 20:11:50 +0000 (21:11 +0100)
src/plugins/lua/metadata_exporter.lua

index de27a64aa59f21d6d2a3d15024efde6163fb3c0b..70f9540d1d5a4ac2fecd633288c9df4f21d3f789 100644 (file)
@@ -65,6 +65,9 @@ Action: $action
 Score: $score
 Symbols: $symbols]],
   timeout = 5.0,
+  gzip = false,
+  keepalive = false,
+  no_ssl_verify = false,
 }
 
 local function get_general_metadata(task, flatten, no_content)
@@ -340,6 +343,9 @@ local pushers = {
       mime_type = rule.mime_type or settings.mime_type,
       headers = hdrs,
       timeout = rule.timeout or settings.timeout,
+      gzip = rule.gzip or settings.gzip,
+      keepalive = rule.keepalive or settings.keepalive,
+      no_ssl_verify = rule.no_ssl_verify or settings.no_ssl_verify,
     })
   end,
   send_mail = function(task, formatted, rule, extra)