repos_path=$(forge_get_config repos_path scmbzr)
web_host=$(forge_get_config web_host)
url_prefix=$(forge_get_config url_prefix)
+ use_ssl=$(forge_get_config use_ssl)
+ if [ -z "$use_ssl" ] || [ "$use_ssl" = no ] ; then
+ http_user_prefix=http://${web_host}${url_prefix}scm/loggerhead
+ else
+ http_user_prefix=https://${web_host}${url_prefix}scm/loggerhead
+ fi
a2enmod wsgi
if [ ! -e $configfile ] ; then
mkdir -p $(dirname $configfile)
http_root_dir = '${repos_path}'
# The url prefix for the bzr branches.
-http_user_prefix = 'http://${web_host}${url_prefix}scm/loggerhead'
+http_user_prefix = '${http_user_prefix}'
# Directory to put cache files in
http_sql_dir = '/var/cache/gforge/loggerhead'