From a16347789da2631a55b75d074c9514890071e0d2 Mon Sep 17 00:00:00 2001 From: microchipster Date: Mon, 29 Jul 2019 16:10:35 +0000 Subject: [PATCH] nginx settings for hangouts bridge login --- .../templates/nginx/conf.d/matrix-synapse.conf.j2 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/roles/matrix-nginx-proxy/templates/nginx/conf.d/matrix-synapse.conf.j2 b/roles/matrix-nginx-proxy/templates/nginx/conf.d/matrix-synapse.conf.j2 index eda0929b8..c971c749c 100644 --- a/roles/matrix-nginx-proxy/templates/nginx/conf.d/matrix-synapse.conf.j2 +++ b/roles/matrix-nginx-proxy/templates/nginx/conf.d/matrix-synapse.conf.j2 @@ -191,6 +191,13 @@ server { location / { rewrite ^/$ /_matrix/static/ last; } + + {% if matrix_mautrix_hangouts_enabled %} + location /login { + proxy_pass http://127.0.0.1:8080; + proxy_set_header X-Forwarded-For $remote_addr; + } + {% endif %} } {% if matrix_nginx_proxy_proxy_matrix_federation_api_enabled %}