portal_path must end with / (#91)

This commit is contained in:
tYYGH 2017-10-02 20:04:46 +02:00 committed by Alexandre Aubin
parent daa799111e
commit 1bf64408c9
2 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -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