List for cgit developers and users
 help / color / mirror / Atom feed
Subject: CGIT_REPO_* environment variables in auth filter?
Date: Sat, 20 Oct 2018 18:00:52 +0200	[thread overview]
Message-ID: <20181020160052.GA9358@STATENS_laptop> (raw)

Hi!

The manual (cgitrc(5)) states that "All filters are handed
the following environment variable:" and lists the different
CGIT_REPO_* variables. I'm trying to access them from an
auth filter written in lua (a slight modification of the
included simple-authentication.lua) but they are all unset.

I have tested running cgit through nginx, lighttpd and
directly. And none of them worked. Is there something I'm
missing? Or is this by design and the documentation is
wrong?

The variables are however available in a shell-script
source-filter.

Thanks in advance for the help.

-- 
hugo


             reply	other threads:[~2018-10-20 16:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-20 16:00  [this message]
2018-10-21 15:20 ` 

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181020160052.GA9358@STATENS_laptop \
    --to=cgit@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).