Defect #5071 ยป httpd-svn-redmine-auth.conf
| 1 |
# /svn location for users
|
|---|---|
| 2 |
PerlLoadModule Apache::Authn::Redmine |
| 3 |
PerlLoadModule Authen::Simple::LDAP |
| 4 |
<Location /repos> |
| 5 |
#RewriteEngine on
|
| 6 |
#RewriteCond %{HTTPS} ^off$
|
| 7 |
#RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R=permanent]
|
| 8 |
|
| 9 |
DAV svn |
| 10 |
SVNParentPath "C:/sourcecode/redminerepos" |
| 11 |
Order deny,allow |
| 12 |
Deny from all |
| 13 |
Satisfy any |
| 14 |
|
| 15 |
|
| 16 |
PerlAccessHandler Apache::Authn::Redmine::access_handler |
| 17 |
PerlAuthenHandler Apache::Authn::Redmine::authen_handler |
| 18 |
AuthType Basic |
| 19 |
AuthName "Redmine SVN Repository" |
| 20 |
|
| 21 |
#read-only access
|
| 22 |
<Limit GET PROPFIND OPTIONS REPORT> |
| 23 |
Require valid-user |
| 24 |
Allow from 166.7.27.15 |
| 25 |
# Allow from another-ip
|
| 26 |
Satisfy any |
| 27 |
</Limit>
|
| 28 |
# write access
|
| 29 |
<LimitExcept GET PROPFIND OPTIONS REPORT> |
| 30 |
Require valid-user |
| 31 |
</LimitExcept>
|
| 32 |
|
| 33 |
## for mysql
|
| 34 |
RedmineDSN "DBI:mysql:database=redmine;host=localhost" |
| 35 |
## for postgres
|
| 36 |
# RedmineDSN "DBI:Pg:dbname=databasename;host=my.db.server"
|
| 37 |
## for SQLite3
|
| 38 |
# RedmineDSN "DBI:SQLite:dbname=database.db"
|
| 39 |
|
| 40 |
RedmineDbUser "redmine" |
| 41 |
RedmineDbPass "redmine" |
| 42 |
#RedmineCacheCredsMax 50
|
| 43 |
</Location>
|