From 1bf64408c93958a751ecbe6ad6784af9b7ef8f28 Mon Sep 17 00:00:00 2001 From: tYYGH Date: Mon, 2 Oct 2017 20:04:46 +0200 Subject: [PATCH] portal_path must end with / (#91) --- 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