From 63741f271bf7458ffa843d803b4800e7fde31de4 Mon Sep 17 00:00:00 2001 From: mwiegand Date: Sat, 5 Feb 2022 14:52:27 +0100 Subject: [PATCH] rspam web passwordprotection --- bundles/rspamd/metadata.py | 3 +-- data/nginx/proxy_pass.conf | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bundles/rspamd/metadata.py b/bundles/rspamd/metadata.py index bc43044..48b8de7 100644 --- a/bundles/rspamd/metadata.py +++ b/bundles/rspamd/metadata.py @@ -30,8 +30,7 @@ def nginx_vhost(metadata): metadata.get('rspamd/hostname'): { 'content': 'nginx/proxy_pass.conf', 'context': { - 'target': 'http://localhost:9999', - # 'target': 'http://localhost:11334', + 'target': 'http://localhost:11334', }, }, }, diff --git a/data/nginx/proxy_pass.conf b/data/nginx/proxy_pass.conf index 0955d6c..16476ca 100644 --- a/data/nginx/proxy_pass.conf +++ b/data/nginx/proxy_pass.conf @@ -7,6 +7,7 @@ server { ssl_certificate_key /var/lib/dehydrated/certs/${server_name}/privkey.pem; location / { + proxy_set_header X-Real-IP $remote_addr; proxy_pass ${target}; } }