From: carlosadean at gmail.com (Carlos Adean)
Subject: require authentication to access a repository
Date: Mon, 30 Apr 2012 15:00:56 -0300 [thread overview]
Message-ID: <CAFbdMBXj1e_X1gLnK-YzyxJGP2U7VvkZ-x88jCRrLRGNeuVf6w@mail.gmail.com> (raw)
In-Reply-To: <4F9C6A39.7020207@nachtgeist.net>
great idea, I'll test in my environment.
thank you
Att.
Carlos Adean
skype: carlosadean
2012/4/28 Daniel Reichelt <hacking at nachtgeist.net>
> Hi,
>
> sorry, I totally sent out an old, crappy template for the repo-specific
> access-configuration. Here's the correct one, I actually use:
>
>
>
> /home/repositories/git/$repo.conf
> -------------8<---------------
> <Location "/repositories/cgit/repo1.git">
> AuthType Basic
> AuthName "GIT repositories"
> AuthUserFile /home/repositories/git-htpasswd
> AuthGroupFile /home/repositories/git-htgroup
> Require group admin
> Require group repo1-rw
> Require group repo1-ro
> </Location>
> <LocationMatch "^/repositories/cgit/linux.git/.*/git-receive-pack$">
> AuthType Basic
> AuthName "GIT repositories"
> AuthUserFile /home/repositories/git-htpasswd
> AuthGroupFile /home/repositories/git-htgroup
> Require group admin
> Require group repo1-rw
> </LocationMatch>
> -------------8<---------------
>
> Cheers
> Daniel
>
next parent reply other threads:[~2012-04-30 18:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4F9C6A39.7020207@nachtgeist.net>
2012-04-30 18:00 ` carlosadean [this message]
2012-05-08 18:23 ` carlosadean
2012-04-09 17:32 carlosadean
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=CAFbdMBXj1e_X1gLnK-YzyxJGP2U7VvkZ-x88jCRrLRGNeuVf6w@mail.gmail.com \
--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).