From e859467b0cf889b5847a7ec6fa863852d2088d82 Mon Sep 17 00:00:00 2001 From: mwiegand Date: Sat, 17 Jul 2021 01:16:23 +0200 Subject: [PATCH] wip --- bundles/rspamd/files/worker-controller.inc | 1 + bundles/rspamd/metadata.py | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/bundles/rspamd/files/worker-controller.inc b/bundles/rspamd/files/worker-controller.inc index 44ede52..a44688d 100644 --- a/bundles/rspamd/files/worker-controller.inc +++ b/bundles/rspamd/files/worker-controller.inc @@ -1 +1,2 @@ password = "${node.metadata.get('rspamd/web_password')}"; +secure_ip = "0.0.0.0" diff --git a/bundles/rspamd/metadata.py b/bundles/rspamd/metadata.py index acb38c6..0e6d787 100644 --- a/bundles/rspamd/metadata.py +++ b/bundles/rspamd/metadata.py @@ -8,6 +8,16 @@ defaults = { 'rspamd': {}, }, }, + 'nginx': { + 'vhosts': { + 'rspamd.sublimity.de': { + 'content': 'nginx/proxy_pass.conf', + 'context': { + 'target': 'http://localhost:11334', + }, + }, + }, + }, 'rspamd': { 'web_password': repo.vault.password_for(node.name + ' rspamd web password'), 'ignore_spam_check_for_ips': [],