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}; } }