2017-02-16 7 views
4

리버스 프록시 (선호하는 nginx)에 대한 인증/액세스 제어를 수행하는 모듈을 찾고 있습니다. 이 모듈은 수행해야합니다리버스 프록시 용 인증/액세스 제어 모듈 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. 

nginxOpenResty 일을 할 수있는 것 같다. Lua의 은 nginx에 대한 액세스 제어에 대해 이야기합니다.

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; 
    } 

    } 

내가 리버스 프록시와 컨트롤에 액세스 할 새로운 오전 : 여기 나에게 파일의 조각이 액세스 (access_by_lua_file)에 대한 실행 수 있다는 인상을주는 예 (nginx and Lua)입니다. 어떤 생각이라도 고맙습니다.

답변

관련 문제