大家好!我在使用Kibana过程中,由于页面访问是没有认证机制的,直接是类似 http://192.168.1.2:5601。于是想用弄了个简单的form表单,openresty+lua ldap加一层验证,验证通过再反向代理到后端服务,后端服务是http://localhost:5601部分配置如下:location = / {set $kibana '';access_by_lua 'local args = ngx.req.get_uri_args()local ldapuser = args["username"]local ldappass = args["password"]lualdap = require "lualdap"ldap_auth, err = lualdap.open_simple("ldap:389",ldapuser.."@com.cn",ldappass)if err ~= nil thenngx.redirect("/error.html")ldap_auth:close()ngx.exit(200)endngx.var.kibana = "http://192.168.1.2:5601/app/kibana"';proxy_pass $kibana;}}但是实际在使用过程中却在我的代理机器上取js资源
有没有弄过类似需求的朋友,麻烦给下指导。谢谢了!