mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
A simple SSO for NGINX, written in Lua
960b29e6db
Fix condition on optional Referer header |
||
---|---|---|
portal | ||
.gitignore | ||
access.lua | ||
conf.json | ||
hige.lua | ||
init.lua | ||
README.md |
SSOwat
A simple LDAP SSO for nginx, written in Lua
Requirements
- Nginx-extras from Debian wheezy-backports
- lua-json
- lua-ldap
OR
- Nginx "Openresty" flavored : http://openresty.org/
- lua-ldap
Installation
- Fetch the repository
git clone https://github.com/Kloadut/SSOwat /etc/ssowat
- Edit SSOwat configuration
nano /etc/ssowat/conf.json
Nginx conf
- Add SSOwat's Nginx configuration (http{} scope)
nano /etc/nginx/conf.d/ssowat.conf
lua_shared_dict cache 10m;
init_by_lua_file /etc/ssowat/init.lua;
access_by_lua_file /etc/ssowat/access.lua;
That's it !