ui - redirect to /setup (again)

This commit is contained in:
fl0ppy-d1sk 2024-11-12 17:09:43 +01:00
parent d020c90280
commit 0af8eae0a3
No known key found for this signature in database
GPG key ID: 93EE47CC3D061500

View file

@ -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 }}";