require authentication to access a repository
Carlos Adean
carlosadean at gmail.com
Mon Apr 30 20:00:56 CEST 2012
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
>
More information about the CGit
mailing list