mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
ui - redirect to /setup (again)
This commit is contained in:
parent
d020c90280
commit
0af8eae0a3
1 changed files with 3 additions and 0 deletions
|
|
@ -7,6 +7,9 @@ access_by_lua_block {
|
|||
if scheme == "http" and http_host ~= nil and http_host ~= "" and request_uri and request_uri ~= "" then
|
||||
return ngx.redirect("https://" .. http_host .. request_uri, ngx.HTTP_MOVED_PERMANENTLY)
|
||||
end
|
||||
if scheme == "https" and request_uri and request_uri ~= "" and not request_uri:match("^/setup") then
|
||||
return ngx.redirect("https://" .. http_host .. "/setup", ngx.HTTP_MOVED_TEMPORARILY)
|
||||
end
|
||||
}
|
||||
set $backendui "{{ UI_HOST }}";
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue