Make matrix-nginx-proxy's X-Forwarded-For header customizable

Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1393
This commit is contained in:
Slavi Pantaleev
2021-11-24 11:32:06 +02:00
parent 24a0d965bf
commit 3a9fe48deb
10 changed files with 23 additions and 15 deletions

View File

@ -27,7 +27,7 @@
{% endif %}
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-For {{ matrix_nginx_proxy_x_forwarded_for }};
}
{% endmacro %}