mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
Update README.md
This commit is contained in:
parent
6f12481149
commit
cac69c0131
1 changed files with 8 additions and 6 deletions
14
README.md
14
README.md
|
@ -16,7 +16,7 @@ Example Nginx conf
|
||||||
```nginx
|
```nginx
|
||||||
|
|
||||||
lua_package_path "/usr/share/lua/5.1/nginx/?.lua;;"; # For Debian
|
lua_package_path "/usr/share/lua/5.1/nginx/?.lua;;"; # For Debian
|
||||||
init_by_lua 'conf_path = "path/to/conf.json"';
|
|
||||||
init_by_lua_file path/to/init.lua;
|
init_by_lua_file path/to/init.lua;
|
||||||
access_by_lua_file path/to/access.lua;
|
access_by_lua_file path/to/access.lua;
|
||||||
|
|
||||||
|
@ -24,23 +24,25 @@ access_by_lua_file path/to/access.lua;
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name mydomain.com;
|
server_name mydomain.com;
|
||||||
|
root /var/www/mydomain.com;
|
||||||
|
|
||||||
location = /ssowat/ {
|
location /ssowat {
|
||||||
root /var/www/portal;
|
alias /var/www/ssowat;
|
||||||
index login.html;
|
default_type text/html;
|
||||||
add_header Content-Type text/html;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
location = /whatever/ {
|
location /whatever {
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Other domain
|
# Other domain
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name myotherdomain.com;
|
server_name myotherdomain.com;
|
||||||
|
root /var/www/myotherdomain.com;
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue