From c1b0488fa17ee51a93a5f73d9e204f830085d9be Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Thu, 16 Jul 2026 10:41:56 -1000 Subject: Prune and rename the filter extensions The Gentoo LDAP filter is distro specific, the owner example only restates what cgit already renders, and the about converters are superseded by the built-in markdown rendering. The two auth filters do the same job and differ only in where their accounts live, so they become auth-inline for accounts kept in the script and auth-file for accounts kept on disk. --- .../{simple-authentication.lua => auth-inline.lua} | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) rename extensions/{simple-authentication.lua => auth-inline.lua} (92%) (limited to 'extensions/auth-inline.lua') diff --git a/extensions/simple-authentication.lua b/extensions/auth-inline.lua similarity index 92% rename from extensions/simple-authentication.lua rename to extensions/auth-inline.lua index 23d3457..91e8805 100644 --- a/extensions/simple-authentication.lua +++ b/extensions/auth-inline.lua @@ -1,6 +1,19 @@ --- This script may be used with the auth-filter. Be sure to configure it as you wish. +-- cgit auth-filter that gates repositories behind a login form and a +-- signed session cookie. -- --- Requirements: +-- This is the INLINE variant. The user accounts and the per-repository +-- access lists are written directly in this script, in the two tables +-- below. Edit them here and reload. This suits a small fixed set of +-- users that rarely changes. +-- +-- The companion auth-file.lua behaves identically but reads its accounts +-- and access lists from files on disk instead, which suits larger or +-- externally managed user sets. +-- +-- Enable it in cgitrc with +-- auth-filter=lua:/path/to/auth-inline.lua +-- +-- Requirements -- luaossl -- -- luaposix -- cgit 2.12.1