mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
[fix] Force portal scheme. Fix #25
This commit is contained in:
parent
57f4dcdf97
commit
edd3e030f4
1 changed files with 5 additions and 0 deletions
|
@ -687,6 +687,11 @@ if ngx.var.host == conf["portal_domain"]
|
|||
then
|
||||
if ngx.var.request_method == "GET" then
|
||||
|
||||
-- Force portal scheme
|
||||
if ngx.var.scheme ~= conf["portal_scheme"] then
|
||||
return redirect(portal_url)
|
||||
end
|
||||
|
||||
-- http://mydomain.org/ssowat
|
||||
if ngx.var.uri.."/" == conf["portal_path"] then
|
||||
return redirect(portal_url)
|
||||
|
|
Loading…
Reference in a new issue