1

我已经安装了 nginx 反向代理服务器和 fiware keyrock IDM。我想使用带有 URL https://"nginx-ip"/key 的 Nginx 服务器访问 fiware keyrock

我的 nginx 配置如下:

location /idm/ {
   proxy_set_header   X-Forwarded-Host    $host;
   proxy_set_header    Host                $host;
   proxy_set_header    X-Real-IP            $remote_addr;
   proxy_set_header    X-Forwarded-For        $proxy_add_x_forwarded_for;
   rewrite ^/idm(/.*)$  $1 break;
   proxy_pass           https://KEYROCK_HOST:KEYROCK_PORT;
   proxy_redirect / /idm/;
   sub_filter '="/' '="/idm/';
   sub_filter '= "/' '= "/idm/';
   sub_filter '=\'/' '=\'/idm/';
   sub_filter_once off;

 }

配置好 nginx 配置后,我可以在以下位置加载/访问 keyrock:

https://nginx-ip/idm.

但是当我尝试登录时,它不会登录并显示相同的 keyrock IDM 主页。我实际上在 nginx 端做了一些更改,但没有一个起作用。

Fiware IDM:https ://github.com/ging/fiware-idm/tree/7.5.1

4

0 回答 0