SSOwat/README.md
2013-10-26 15:29:51 +02:00

50 lines
677 B
Markdown

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
```bash
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)
```bash
nano /etc/nginx/conf.d/ssowat.conf
```
```nginx
lua_shared_dict cache 10m;
init_by_lua_file /etc/ssowat/init.lua;
access_by_lua_file /etc/ssowat/access.lua;
```
**That's it !**