Friendly fork of SSOwat from the YunoHost project on GitHub.
Go to file
Kload cfae7af501 Fixes + login style 2013-10-20 18:24:42 +02:00
portal Fixes + login style 2013-10-20 18:24:42 +02:00
README.md Update README.md 2013-10-16 20:50:36 +02:00
access.lua Bugfixes 2013-10-20 17:24:44 +02:00
conf.json Refactoring + serving file from lua 2013-10-20 16:38:49 +02:00
hige.lua Refactoring + serving file from lua 2013-10-20 16:38:49 +02:00
init.lua Bugfixes 2013-10-20 17:24:44 +02:00

README.md

SSOwat

A simple LDAP SSO for nginx, written in Lua

Requirements

  • Nginx-extras from Debian wheezy-backports
  • lua-json
  • lua-ldap

OR

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
nano /etc/nginx/conf.d/ssowat.conf

init_by_lua_file   /etc/ssowat/init.lua;
access_by_lua_file /etc/ssowat/access.lua;

server {
    listen 80; # Do not forget HTTPS for production

    location /ssowat {
       alias /etc/ssowat/portal;
       default_type text/html;
       index index.html;
    }
}

That's it !