Indefero

Indefero Git Source Tree

Root/src/IDF/conf/idf.php-dist

1<?php
2/* -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3/*
4# ***** BEGIN LICENSE BLOCK *****
5# This file is part of InDefero, an open source project management application.
6# Copyright (C) 2008 Céondo Ltd and contributors.
7#
8# InDefero is free software; you can redistribute it and/or modify
9# it under the terms of the GNU General Public License as published by
10# the Free Software Foundation; either version 2 of the License, or
11# (at your option) any later version.
12#
13# InDefero is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU General Public License for more details.
17#
18# You should have received a copy of the GNU General Public License
19# along with this program; if not, write to the Free Software
20# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21#
22# ***** END LICENSE BLOCK ***** */
23
24$cfg = array();
25
26#
27# You must set them to false once everything is running ok.
28#
29$cfg['debug'] = true;
30# It will help you catch errors at beginning when configuring your
31# SCM backend. It must be turned off in production.
32$cfg['debug_scm'] = false;
33
34#
35# Note: By default, InDefero will not manage the repositories for
36# you, you can enable the repositories management with the
37# built-in plugins. The documentation of the plugins is available
38# in the `doc/` folder.
39#
40
41# If you have a single git repository, just put the full path to it
42# without trailing slash. The path is the path to the git database,
43# so you need to include the /.git folder.
44# For example: '/path/to/my/project/.git'
45#
46# If you have multiple repositories, you need to put %s where you
47# want the shortname of the project to be replaced.
48# For example:
49# - You have many projects on your local computer and want to use
50# InDefero to see them. Put: '/home/yourlogin/Projects/%s/.git'
51# - You have many projects on a remote server with only "bare" git
52# repositories. Put: '/home/git/repositories/%s.git'
53#
54# ** Do not forget to give read access to these folders to your www
55# ** user. For example, adding www to the git group.
56$cfg['git_repositories'] = '/home/git/repositories/%s.git';
57#
58# Like for the git_repositories definition, the path can contains %s
59# and it will be automatically replaced. You can ignore this
60# configuration variable as it is only for information use in the
61# tree view.
62#
63$cfg['git_remote_url'] = 'git://localhost/%s.git';
64$cfg['git_write_remote_url'] = 'git@localhost:%s.git';
65
66# Same as for git, you can have multiple repositories, one for each
67# project or a single one for all the projects.
68#
69# In the case of subversion, the admin of a project can also select a
70# remote repository from the web interface. From the web interface
71# you can define a local repository, local repositories are defined
72# here. This if for security reasons.
73$cfg['svn_repositories'] = 'file:///home/svn/repositories/%s';
74$cfg['svn_remote_url'] = 'http://localhost/svn/%s';
75
76#
77# You can setup monotone for use with indefero in several ways.
78# Please look into doc/syncmonotone.mdtext for more information.
79#
80
81# Path to the monotone binary
82$cfg['mtn_path'] = 'mtn';
83
84# Additional options for the started monotone process
85$cfg['mtn_opts'] = array('--no-workspace', '--no-standard-rcfiles');
86
87# The path to a specific database (local use) or a writable project
88# directory (remote / usher use). %s is replaced with the project name
89$cfg['mtn_repositories'] = '/home/mtn/repositories/%s.mtn';
90
91# The URL which is displayed as sync URL to the user and which is also
92# used to connect to a remote usher
93$cfg['mtn_remote_url'] = 'mtn://my-host.biz/%s';
94
95# Whether the particular database(s) are accessed locally (via automate stdio)
96# or remotely (via automate remote_stdio). 'remote' is the default for
97# use with usher and the SyncMonotone plugin, while 'local' access should be
98# choosed for manual setups and / or ssh access.
99$cfg['mtn_db_access'] = 'local';
100
101# Full path to the directory tree which contains default configuration files
102# that are automatically created for new projects. This is only needed
103# if $cfg['mtn_db_access'] is set to remote, i.e. in case the SyncMonotone
104# plugin should be used. If unset, it defaults to the tree underknees
105# src/IDF/Plugin/SyncMonotone/. Don't forget the trailing slash!
106#$cfg['mtn_confdir'] = '/path/to/dir/tree/';
107
108# Additional configuration files you want to create / copy for new setups.
109# All these file paths have to be relative to $cfg['mtn_confdir'].
110#$cfg['mtn_confdir_extra'] = array('hooks.d/something.lua')
111
112# Needs to be configured for remote / usher usage.
113# This allows basic control of a running usher process via the forge
114# administration. The variable must point to the full (writable)
115# path of the usher configuration file which gets updated when new projects
116# are added
117#$cfg['mtn_usher_conf'] = '/path/to/usher.conf';
118
119# Mercurial repositories path
120$cfg['mercurial_repositories'] = '/home/mercurial/repositories/%s';
121#$cfg['mercurial_remote_url'] = 'http://projects.ceondo.com/hg/%s';
122
123# admins will get an email in case of errors in the system in non
124# debug mode.
125$cfg['admins'] = array(
126 array('Admin', 'you@example.com'),
127 );
128
129# Email configuration
130$cfg['send_emails'] = true;
131$cfg['mail_backend'] = 'smtp';
132$cfg['mail_host'] = 'localhost';
133$cfg['mail_port'] = 25;
134
135# Paths/Url configuration.
136#
137# Examples:
138# You have:
139# http://www.mydomain.com/myfolder/index.php
140# Put:
141# $cfg['idf_base'] = '/myfolder/index.php';
142# $cfg['url_base'] = 'http://www.mydomain.com';
143#
144# You have mod_rewrite:
145# http://www.mydomain.com/
146# Put:
147# $cfg['idf_base'] = '';
148# $cfg['url_base'] = 'http://www.mydomain.com';
149#
150#
151#
152$cfg['idf_base'] = '/index.php';
153$cfg['url_base'] = 'http://localhost';
154
155# Url to access the media folder which is in the www folder
156# of the archive
157$cfg['url_media'] = 'http://localhost/media';
158
159# Url to access a folder in which the files you upload through
160# the downloads tab will be stored.
161$cfg['url_upload'] = 'http://localhost/media/upload';
162# Path to the upload folder
163$cfg['upload_path'] = '/home/www/indefero/www/media/upload';
164
165#
166# The following path *MUST NOT* be accessible through a web browser
167# as user will be able to upload .html, .php files and this can
168# create *TERRIBLE* security issues. In this folder, the attachments
169# to the issues will be uploaded and we do not restrict the content type.
170#
171$cfg['upload_issue_path'] = '/home/www/indefero/attachments';
172
173#
174# write here a long random string unique for this installation. This
175# is critical to put a long string, with at least 40 characters.
176$cfg['secret_key'] = '';
177
178# the sender of all the emails.
179$cfg['from_email'] = 'sender@example.com';
180
181# Email address for the bounced messages.
182$cfg['bounce_email'] = 'no-reply@example.com';
183
184# Temporary folder where the script is writing the compiled templates,
185# cached data and other temporary resources.
186# It must be writeable by your webserver instance.
187# It is mandatory if you are using the template system.
188$cfg['tmp_folder'] = '/tmp';
189
190# Database configuration
191$cfg['db_login'] = 'www';
192$cfg['db_password'] = '';
193$cfg['db_server'] = '';
194$cfg['db_version'] = '5.1'; # Only needed for MySQL
195# If you want to have different installations with the same DB
196$cfg['db_table_prefix'] = 'indefero_';
197# ** DO NOT USE SQLITE IN PRODUCTION **
198# This is not because of problems with the quality of the SQLite
199# driver or with SQLite itself, this is due to the lack of migration
200# support in Pluf for SQLite, this means we cannot modify the DB
201# easily once it is loaded with data.
202$cfg['db_engine'] = 'PostgreSQL'; # SQLite is also well tested or MySQL
203$cfg['db_database'] = 'website'; # put absolute path to the db if you
204 # are using SQLite.
205#
206# The extension of the downloads are limited. You can add extra
207# extensions here.
208# $cfg['idf_extra_upload_ext'] = 'ext1 ext2';
209#
210# By default, the size of the downloads is limited to 2MB.
211# The php.ini upload_max_filesize configuration setting will
212# always have precedence.
213# $cfg['max_upload_size'] = 2097152; // Size in bytes
214
215#
216# Time zone
217# http://www.php.net/manual/en/timezones.php
218#
219# $cfg['time_zone'] = 'Europe/Berlin';
220
221
222$cfg['pear_path'] = '/usr/share/php';
223
224$cfg['login_success_url'] = $cfg['url_base'].$cfg['idf_base'];
225$cfg['after_logout_page'] = $cfg['url_base'].$cfg['idf_base'];
226
227# Caching of the scm commands.
228$cfg['cache_engine'] = 'Pluf_Cache_File';
229$cfg['cache_timeout'] = 300;
230$cfg['cache_file_folder'] = $cfg['tmp_folder'].'/cache';
231
232# The folder in which the templates of the application are located.
233$cfg['template_folders'] = array(
234 dirname(__FILE__).'/../templates',
235 );
236
237$cfg['installed_apps'] = array('Pluf', 'IDF');
238$cfg['pluf_use_rowpermission'] = true;
239$cfg['middleware_classes'] = array(
240 'Pluf_Middleware_Csrf',
241 'Pluf_Middleware_Session',
242 'IDF_Middleware',
243 'Pluf_Middleware_Translation',
244 );
245$cfg['template_context_processors'] = array('IDF_Middleware_ContextPreProcessor');
246$cfg['idf_views'] = dirname(__FILE__).'/urls.php';
247
248# available languages
249$cfg['languages'] = array('en', 'fr');
250
251# SCM base configuration
252$cfg['allowed_scm'] = array('git' => 'IDF_Scm_Git',
253 'svn' => 'IDF_Scm_Svn',
254 'mercurial' => 'IDF_Scm_Mercurial',
255 'mtn' => 'IDF_Scm_Monotone',
256 );
257
258# Specific git config
259# The core.quotepath is configured on new repository
260# True -> All characters upper than 0x80 will be escape (default)
261# False -> Characters is print directly, enable accented character in a UTF-8 shell
262# $cfg['git_core_quotepath'] = false;
263
264# Set to true when uploaded public keys should not only be validated
265# syntactically, but also by the specific backend. For SSH public
266# keys, ssh-keygen(3) must be available and usable in PATH, for
267# monotone public keys, the monotone binary (as configured above)
268# is used.
269# $cfg['idf_strong_key_check'] = false;
270
271# If you want to use another memtypes database
272# $cfg['idf_mimetypes_db'] = '/etc/mime.types';
273
274# Extra text files when displaying source
275# $cfg['idf_extra_text_ext'] = 'ext1 ext2 ext3';
276
277# If you can execute the shell commands executed to get info
278# from the scm with the user of your PHP process but it is
279# not working from within PHP, this can be due to the environment
280# variables not being set correctly. Note the trailing space.
281# $cfg['idf_exec_cmd_prefix'] = '/usr/bin/env -i ';
282
283# Path to the SCM binaries. These binaries are not necessarily in
284# the path of your webserver or fastcgi process. In that case you
285# may need to set the path manually here. This is the case with OSX.
286# To know which path you need to provide, just run:
287# $ which git
288# from the command line. This will give you the path to git.
289# $cfg['svn_path'] = 'svn';
290# $cfg['svnlook_path'] = 'svnlook';
291# $cfg['svnadmin_path'] = 'svnadmin';
292# $cfg['hg_path'] = 'hg';
293# $cfg['git_path'] = 'git';
294
295# If you do not want to have calculations of the repositories, attachments
296# and downloads size, set it to true. You can set to false some
297# times to times to check the size.
298# $cfg['idf_no_size_check'] = false;
299
300return $cfg;
301

Archive Download this file