Project

General

Profile

Actions

HowTo configure Redmine for advanced Bazaar integration

PerlLoadModule Apache::Authn::Redmine

WSGIScriptAliasMatch ^/bzr/.*/\.bzr/smart$ /var/vcs/bzr/bzr-smart.py

# Allow regular GETs to work too
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/bzr/.*/\.bzr/smart$
RewriteRule ^/bzr/(.+)$ /home/code/bzr/$1 [L]

<Location /bzr>
    WSGIApplicationGroup %{GLOBAL}

    DAV on
    AuthType Basic
    AuthName "Project membership authentication" 
    Require valid-user

    PerlAccessHandler Apache::Authn::Redmine::access_handler
    PerlAuthenHandler Apache::Authn::Redmine::authen_handler

    RedmineDSN "DBI:mysql:database=redmine_default;host=127.0.0.1" 
    RedmineDbUser "redmine" 
    RedmineDbPass "password" 
    RedmineCacheCredsMax 50
</Location>
#!/usr/bin/env python

from bzrlib.transport.http import wsgi

def application(environ, start_response):
    app = wsgi.make_app(
        root='/home/code/bzr/',
        prefix='/bzr/',
        readonly=False,
        enable_logging=True)
    return app(environ, start_response)

Updated by Lluís Vilanova almost 13 years ago · 1 revisions