add conf for subdomain teacher

This commit is contained in:
moicen
2023-05-20 01:14:48 +08:00
parent e2f0c30877
commit 79f3f52593
7 changed files with 70 additions and 207 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ function _M.upt(url)
if string.find(hostname, "moicen.com") then
ngx.log(ngx.INFO, 'match moicen.com: ' .. ngx.var.upt_moicen_secret)
secret = ngx.var.upt_moicen_secret
elseif string.find(hostname, "alchemy") then
elseif string.find(hostname, "alchemy-studio.cn", true) then
ngx.log(ngx.INFO, 'match alchemy: ' .. ngx.var.upt_alchemy_secret)
secret = ngx.var.upt_alchemy_secret
elseif string.find(hostname, "huiwings.cn") then