fix main script usage of ctx
This commit is contained in:
parent
5d21c975ea
commit
c15abe3c05
1 changed files with 6 additions and 2 deletions
8
main.lua
8
main.lua
|
@ -8,8 +8,12 @@ local CONFIG_PATH = ".;/etc/aproxy"
|
||||||
-- local config = loadConfig()
|
-- local config = loadConfig()
|
||||||
|
|
||||||
local ctx = require('ctx')
|
local ctx = require('ctx')
|
||||||
ctx.setWantedScripts({
|
|
||||||
|
ctx:setWantedScripts({
|
||||||
['scripts.webfinger_allowlist'] = {accounts = {"example@example.com"}}
|
['scripts.webfinger_allowlist'] = {accounts = {"example@example.com"}}
|
||||||
})
|
})
|
||||||
|
ctx:loadChain()
|
||||||
|
|
||||||
return ctx:onRequest
|
return function()
|
||||||
|
ctx:onRequest()
|
||||||
|
end
|
||||||
|
|
Loading…
Reference in a new issue