aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitriy Alekseev <1865999+dragoangel@users.noreply.github.com>2024-12-05 21:11:50 +0100
committerGitHub <noreply@github.com>2024-12-05 21:11:50 +0100
commitf833e026d20c653dbd16933c4a05ba8c7b30fb90 (patch)
tree157b749549b28b0c35899cd517e547183a986d68
parent19d20d7afe3e47a9df6f2fc89a551bce30ac6f0c (diff)
downloadrspamd-f833e026d20c653dbd16933c4a05ba8c7b30fb90.tar.gz
rspamd-f833e026d20c653dbd16933c4a05ba8c7b30fb90.zip
Allow set gzip, keepalive and no_ssl_verify in metadata_exporter module
-rw-r--r--src/plugins/lua/metadata_exporter.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/lua/metadata_exporter.lua b/src/plugins/lua/metadata_exporter.lua
index de27a64aa..70f9540d1 100644
--- a/src/plugins/lua/metadata_exporter.lua
+++ b/src/plugins/lua/metadata_exporter.lua
@@ -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)