-- Filter which denies access to all repos
--
-- File managed by Puppet
function authenticate_post()
return 0
end
function authenticate_cookie()
return 0
end
function body()
html("
Access denied for everyone and everything
")
return 0
end
actions["authenticate-post"] = authenticate_post
actions["authenticate-cookie"] = authenticate_cookie
actions["body"] = body
function filter_open(...)
action = actions[select(1, ...)]
http = {}
http["cookie"] = select(2, ...)
http["method"] = select(3, ...)
http["query"] = select(4, ...)
http["referer"] = select(5, ...)
http["path"] = select(6, ...)
http["host"] = select(7, ...)
http["https"] = select(8, ...)
cgit = {}
cgit["repo"] = select(9, ...)
cgit["page"] = select(10, ...)
cgit["url"] = select(11, ...)
cgit["login"] = select(12, ...)
end
-- function filter_close()
-- return action()
-- end
--
-- function filter_write(str)
-- post = parse_qs(str)
-- end