Nginx 反向代理背后的KeyClope客户端

Nginx 反向代理背后的KeyClope客户端,nginx,oauth-2.0,reverse-proxy,keycloak,nginx-location,Nginx,Oauth 2.0,Reverse Proxy,Keycloak,Nginx Location,我有以下问题。 我的密钥斗篷和客户端都在反向代理的后面 客户端的反向代理配置: server_name my.domain.here.com; location / { # First attempt to serve request as file, then # as directory, then fall back to displaying a 404. proxy_pass http://127

我有以下问题。 我的密钥斗篷和客户端都在反向代理的后面

客户端的反向代理配置:

    server_name my.domain.here.com;

    location / {
            # First attempt to serve request as file, then
            # as directory, then fall back to displaying a 404.
            proxy_pass http://127.0.0.1:9254;
            proxy_redirect off;
            proxy_set_header Host $host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Forwarded-Host $host;
            proxy_set_header X-Forwarded-Proto $scheme;
    }
当客户端现在尝试使用oAuth登录时,KeyClope出现以下错误: 无效参数:重定向\u uri

因为我指定的有效重定向URI是:my.domain.here.com/*
请求重定向URI为:*


有没有一种方法可以将服务器名传递给keydepot?

您可以指定
/*
重定向uri并检查它是否有效?嘿,谢谢您的回复。问题不是keydape,而是客户机。客户端已作为本地主机响应。我刚刚给他做了正确的配置。