mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
55 lines
717 B
Markdown
55 lines
717 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
|
|
|
|
|
|
Example Nginx conf
|
|
------------------
|
|
|
|
```nginx
|
|
|
|
init_by_lua_file path/to/init.lua;
|
|
access_by_lua_file path/to/access.lua;
|
|
|
|
# SSO domain
|
|
server {
|
|
listen 80;
|
|
server_name mydomain.com;
|
|
root /var/www/mydomain.com;
|
|
|
|
location /ssowat {
|
|
alias /var/www/ssowat;
|
|
default_type text/html;
|
|
}
|
|
|
|
location /whatever {
|
|
|
|
...
|
|
|
|
}
|
|
}
|
|
|
|
# Other domain
|
|
server {
|
|
listen 80;
|
|
server_name myotherdomain.com;
|
|
root /var/www/myotherdomain.com;
|
|
|
|
...
|
|
|
|
}
|
|
|
|
```
|