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. --- extensions/{file-authentication.lua => auth-file.lua} | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) rename extensions/{file-authentication.lua => auth-file.lua} (93%) (limited to 'extensions/auth-file.lua') diff --git a/extensions/file-authentication.lua b/extensions/auth-file.lua similarity index 93% rename from extensions/file-authentication.lua rename to extensions/auth-file.lua index 0248804..1f435c6 100644 --- a/extensions/file-authentication.lua +++ b/extensions/auth-file.lua @@ -1,6 +1,19 @@ --- This script may be used with the auth-filter. +-- cgit auth-filter that gates repositories behind a login form and a +-- signed session cookie. -- --- Requirements: +-- This is the FILE-BACKED variant. The user accounts, the groups, and +-- the per-repository access lists are read from files on disk. Set their +-- paths below and edit those files without touching this script. This +-- suits larger or externally managed user sets. +-- +-- The companion auth-inline.lua behaves identically but keeps its +-- accounts and access lists inline in the script itself, which suits a +-- small fixed set of users. +-- +-- Enable it in cgitrc with +-- auth-filter=lua:/path/to/auth-file.lua +-- +-- Requirements -- luaossl -- -- luaposix -- cgit 2.12.1