From a066791a25a844999b47d46fdcb7b0a597619e6f Mon Sep 17 00:00:00 2001 From: teutat3s <10206665+teutat3s@users.noreply.github.com> Date: Sat, 4 Apr 2020 00:08:32 +0200 Subject: [PATCH] add redirect 302 to HTTPS --- .../templates/nginx/conf.d/matrix-domain.conf.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/matrix-nginx-proxy/templates/nginx/conf.d/matrix-domain.conf.j2 b/roles/matrix-nginx-proxy/templates/nginx/conf.d/matrix-domain.conf.j2 index 027f2d31..58c62753 100644 --- a/roles/matrix-nginx-proxy/templates/nginx/conf.d/matrix-domain.conf.j2 +++ b/roles/matrix-nginx-proxy/templates/nginx/conf.d/matrix-domain.conf.j2 @@ -19,6 +19,10 @@ default_type application/json; add_header Access-Control-Allow-Origin *; } + + location / { + return 302 https://{{ matrix_nginx_proxy_proxy_riot_hostname }}; + } {% endmacro %} server {