mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
ui - update redirect logic to exclude /.well-known paths
This commit is contained in:
parent
4f4cc755ef
commit
52a3814728
1 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ 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
|
||||
if scheme == "https" and request_uri and request_uri ~= "" and not request_uri:match("^/setup") and not request_uri:match("^/%.well%-known") then
|
||||
return ngx.redirect("https://" .. http_host .. "/setup", ngx.HTTP_MOVED_TEMPORARILY)
|
||||
end
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue