From 8a27fe96b17c96f1f03e9b1b52b7a5b53b424a99 Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Sun, 14 Mar 2021 12:16:55 +0100 Subject: [PATCH] matrix: adjust vhost settings for 1.29 --- roles/matrix/templates/vhost.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/matrix/templates/vhost.j2 b/roles/matrix/templates/vhost.j2 index d5c73ef..e390eec 100644 --- a/roles/matrix/templates/vhost.j2 +++ b/roles/matrix/templates/vhost.j2 @@ -28,6 +28,8 @@ server { location / { proxy_pass http://localhost:8008; proxy_set_header X-Forwarded-For $remote_addr; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header Host $host; } } @@ -45,5 +47,7 @@ server { location / { proxy_pass http://localhost:8008; proxy_set_header X-Forwarded-For $remote_addr; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header Host $host; } }