From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 12025 invoked from network); 15 Jun 2023 18:58:11 -0000 Received: from lists.zx2c4.com (165.227.139.114) by inbox.vuxu.org with ESMTPUTF8; 15 Jun 2023 18:58:11 -0000 Received: by lists.zx2c4.com (ZX2C4 Mail Server) with ESMTP id c188447a; Thu, 15 Jun 2023 18:57:54 +0000 (UTC) Return-Path: Received: from mta01.prd.rdg.aluminati.org (mta01.prd.rdg.aluminati.org [94.76.243.214]) by lists.zx2c4.com (ZX2C4 Mail Server) with ESMTPS id 0093dd28 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Thu, 15 Jun 2023 18:57:52 +0000 (UTC) Received: from mta01.prd.rdg.aluminati.org (localhost [127.0.0.1]) by mta.aluminati.local (Postfix) with ESMTP id AC3F5C0DA7; Thu, 15 Jun 2023 19:57:51 +0100 (BST) Received: from localhost (localhost [127.0.0.1]) by mta01.prd.rdg.aluminati.org (Postfix) with ESMTP id 8F4AC1FE7D; Thu, 15 Jun 2023 19:57:51 +0100 (BST) X-Quarantine-ID: X-Virus-Scanned: Debian amavisd-new at mta01.prd.rdg.aluminati.org Received: from mta.aluminati.local ([127.0.0.1]) by localhost (mta01.prd.rdg.aluminati.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id bMzWo3ONgK2b; Thu, 15 Jun 2023 19:57:50 +0100 (BST) Received: from keeping.me.uk (unknown [81.174.171.191]) by svc01-1.prd.rdg.aluminati.org (Postfix) with ESMTPSA id A75951C0004; Thu, 15 Jun 2023 19:57:49 +0100 (BST) Date: Thu, 15 Jun 2023 19:57:48 +0100 From: John Keeping To: Yazar Strulik Cc: cgit@lists.zx2c4.com Subject: Re: cgit simple-authentication.lua problem Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-BeenThere: cgit@lists.zx2c4.com X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: List for cgit developers and users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: cgit-bounces@lists.zx2c4.com Sender: "CGit" On Thu, Jun 15, 2023 at 09:40:35AM +0200, Yazar Strulik wrote: > I need some help with getting the simple-authentication.lua running. > > I'm using gitolite as my git base with cgit as my front-end and apache2 as > the webserver. > The main cgit configuration works but it cant interpret the .lua files when > using the authentication-filters by adding following line to the cgitrc: > > auth-filter=/usr/lib/cgit/filters/simple-authentication.lua The path needs a "lua:" prefix, like this: auth-filter=lua:/usr/lib/cgit/filters/simple-authentication.lua Without that the default "exec:" path is used which tries to execute the script.