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