]> source.dussan.org Git - rspamd.git/commitdiff
Add basic auth to metadata_exporter http pusher 4300/head
authoryo <johan@nosd.in>
Sat, 8 Oct 2022 13:40:39 +0000 (15:40 +0200)
committeryo <johan@nosd.in>
Sat, 8 Oct 2022 13:40:39 +0000 (15:40 +0200)
src/plugins/lua/metadata_exporter.lua

index 2bce5626a3d1230980efd35b51fa0bf30e0bdf3e..cd225e841a5c2aaa8f0a69131af457a8ba0fccee 100644 (file)
@@ -323,6 +323,8 @@ local pushers = {
     rspamd_http.request({
       task=task,
       url=rule.url,
+      user=rule.user,
+      password=rule.password,
       body=formatted,
       callback=http_callback,
       mime_type=rule.mime_type or settings.mime_type,