2017-02-16 27 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)です。どんな考えもありがとう。

答えて

関連する問題