ruby-on-rails – 用于反向代理NGINX的认证/访问控制模块
发布时间:2020-12-17 02:09:44 所属栏目:百科 来源:网络整理
导读:我正在寻找一个模块,它为反向代理(优选nginx)进行身份验证/访问控制.该模块应该: 1. user authentication using credential stored in database (such as postgres)2. Monitoring the ongoing connection and take action if certain access credential is
我正在寻找一个模块,它为反向代理(优选nginx)进行身份验证/访问控制.该模块应该:
1. user authentication using credential stored in database (such as postgres) 2. Monitoring the ongoing connection and take action if certain access credential is met. For example,time is expired 3. open source (allow customization) and nginx,ruby(rails) preferable. 似乎 server { listen 8080; location / { auth_basic "Protected Elasticsearch"; auth_basic_user_file passwords; access_by_lua_file '../authorize.lua'; #<<<===== proxy_pass http://elasticsearch; proxy_redirect off; } } 我是反向代理访问控制的新手.任何想法都表示赞赏. 解决方法
这是nginx网站上一个有趣的
article,它回答了上面的问题.
https://www.nginx.com/blog/nginx-plus-authenticate-users/
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |