aproxy/main.lua

20 lines
363 B
Lua
Raw Normal View History

2022-12-06 03:36:15 +00:00
local CONFIG_PATH = ".;/etc/aproxy"
-- function loadConfig()
-- -- TODO load config_path
-- return require("./config.lua")
-- end
--
-- local config = loadConfig()
2022-12-06 18:53:20 +00:00
local ctx = require('ctx')
2022-12-06 18:54:16 +00:00
ctx:setWantedScripts({
['scripts.webfinger_allowlist'] = {accounts = {"example@example.com"}}
2022-12-06 18:53:20 +00:00
})
2022-12-06 18:54:16 +00:00
ctx:loadChain()
2022-12-06 03:36:15 +00:00
2022-12-06 18:54:16 +00:00
return function()
ctx:onRequest()
end