matrix-docker-ansible-deploy icon indicating copy to clipboard operation
matrix-docker-ansible-deploy copied to clipboard

External Reverse Proxy OIDC Problem

Open xXTim97Xx opened this issue 4 years ago • 3 comments

I've got a Problem while trying to setup Matrix with an external Proxy.

When I'm trying to click on "Login with Auth0" on Element, my Webbrowser shows:

"Error to many redirects"

Is the redirection wrong? Currently it's going to: https://matrix.example.de/_matrix/client/r0/login/sso/redirect/oidc-auth0?redirectUrl=https%3A%2F%2Felement.example.de%2F

Everything else is working fine.

My external Proxy is a nginx reverse proxy and setup with this config on another server.

server {
    listen 443 ssl;
    listen [::]:443 ssl;

    server_name matrix.*;
    server_name element.*;

    include /config/nginx/ssl.conf;

    #client_max_body_size 0;

    location / {

        client_max_body_size 50M;

        include /config/nginx/proxy-matrix.conf;
        include /config/nginx/resolver.conf;
        set $upstream_app 10.0.20.20;
        set $upstream_port 81;
        set $upstream_proto http;
        proxy_pass $upstream_proto://$upstream_app:$upstream_port;

    }
}

xXTim97Xx avatar Jul 20 '21 08:07 xXTim97Xx

Is your bug similar to this error here? https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1132

hungrymonkey avatar Oct 25 '21 01:10 hungrymonkey

@xXTim97Xx Have you been able to solve this? I'm running into the same issue with KeyCloak Auth ... :(

jacotec avatar Jun 16 '22 21:06 jacotec