rules update

pull/26/head
有安科技 2023-09-11 19:52:37 +08:00
parent 4c8459454d
commit 8743dc1c23
2 changed files with 15 additions and 0 deletions

15
rules/force-https.lua Normal file
View File

@ -0,0 +1,15 @@
--[[
: httphttps
:
:
: httphttps
--]]
if ngx.var.scheme == "http" then
return ngx.redirect("https://" .. ngx.var.host)
end
return false