From 6b6fd09f34e3f2f68e0f05992574e080b79f9203 Mon Sep 17 00:00:00 2001 From: Y Date: Sat, 16 Sep 2017 18:49:37 +0200 Subject: [PATCH] portal_path must end with / --- README.md | 6 +++--- config.lua | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index af3e6b3..0f9bc49 100644 --- a/README.md +++ b/README.md @@ -74,11 +74,11 @@ Domain of the authentication portal. It has to be a domain, IP addresses will no #### portal_path -URI of the authentication portal (**default**: `/ssowat`) +URI of the authentication portal (**default**: `/ssowat/`). This path **must** end with “`/`”. #### portal_port -Web port of the authentication portal (**default**: `443`) +Web port of the authentication portal (**default**: `443` for `https`, `80` for `http`) #### portal_scheme @@ -86,7 +86,7 @@ Whether authentication should use secure connection or not (**default**: `https` #### domains -List of handle domains (**default**: similar to `portal_domain`) +List of handled domains (**default**: similar to `portal_domain`) #### ldap_host diff --git a/config.lua b/config.lua index ab31ebd..c0359ae 100644 --- a/config.lua +++ b/config.lua @@ -33,7 +33,7 @@ function get_config() -- Else just take the persistent rule's value else conf[k] = v - end + end end end @@ -41,7 +41,7 @@ function get_config() -- Default configuration values default_conf = { portal_scheme = "https", - portal_path = "/ssowat", + portal_path = "/ssowat/", local_portal_domain = "yunohost.local", domains = { conf["portal_domain"], "yunohost.local" }, session_timeout = 60 * 60 * 24, -- one day