HowTo configure Redmine for advanced Bazaar integration » History » Version 1
Lluís Vilanova, 2012-01-22 21:07
1 | 1 | Lluís Vilanova | h1. HowTo configure Redmine for advanced Bazaar integration |
---|---|---|---|
2 | |||
3 | <pre> |
||
4 | PerlLoadModule Apache::Authn::Redmine |
||
5 | |||
6 | WSGIScriptAliasMatch ^/bzr/.*/\.bzr/smart$ /var/vcs/bzr/bzr-smart.py |
||
7 | |||
8 | # Allow regular GETs to work too |
||
9 | RewriteEngine on |
||
10 | RewriteCond %{REQUEST_URI} !^/bzr/.*/\.bzr/smart$ |
||
11 | RewriteRule ^/bzr/(.+)$ /home/code/bzr/$1 [L] |
||
12 | |||
13 | <Location /bzr> |
||
14 | WSGIApplicationGroup %{GLOBAL} |
||
15 | |||
16 | DAV on |
||
17 | AuthType Basic |
||
18 | AuthName "Project membership authentication" |
||
19 | Require valid-user |
||
20 | |||
21 | PerlAccessHandler Apache::Authn::Redmine::access_handler |
||
22 | PerlAuthenHandler Apache::Authn::Redmine::authen_handler |
||
23 | |||
24 | RedmineDSN "DBI:mysql:database=redmine_default;host=127.0.0.1" |
||
25 | RedmineDbUser "redmine" |
||
26 | RedmineDbPass "password" |
||
27 | RedmineCacheCredsMax 50 |
||
28 | </Location> |
||
29 | </pre> |
||
30 | |||
31 | <pre> |
||
32 | #!/usr/bin/env python |
||
33 | |||
34 | from bzrlib.transport.http import wsgi |
||
35 | |||
36 | def application(environ, start_response): |
||
37 | app = wsgi.make_app( |
||
38 | root='/home/code/bzr/', |
||
39 | prefix='/bzr/', |
||
40 | readonly=False, |
||
41 | enable_logging=True) |
||
42 | return app(environ, start_response) |
||
43 | </pre> |