as root directory # - The database is placed in as /var/monotone//database.mtn # - The server key is put into /var/monotone//keys and # is named "-server@", where host is the host part # of 'mtn_remote_url' # # therefor /var/monotone MUST be read/writable for the www user and all # files which are created underknees MUST be read/writable by the user # who is executing the usher instance! The best way to achieve this is with # default (POSIX) ACLs on /var/monotone. # # # You could also choose to setup usher by hand, i.e. with individual # databases, in this case leave 'mtn_usher_conf' below commented out. # # Pro: - read and write access can be granted per project # - no database locking issues # - one public server running on the one well-known port # Con: - harder to setup # # Usher can also be used to forward sync requests to remote servers, # please consult its README file for more information. # # monotone also allows to use SSH as transport protocol, so if you do not plan # to setup a netsync server as described above, then just enter a URI like # 'ssh://my-host.biz/home/mtn/repositories/%s.mtn' in 'mtn_remote_url'. # $cfg['mtn_repositories'] = '/home/mtn/repositories/%s.mtn'; $cfg['mtn_remote_url'] = 'mtn://my-host.biz/%s'; # # Whether the particular database(s) are accessed locally (via automate stdio) # or remotely (via automate remote_stdio). 'remote' is the default for # netsync setups, while 'local' access should be choosed for ssh access. # # Note that you need to setup the hook 'get_remote_automate_permitted' for # each remotely accessible database. A full HOWTO set this up is beyond this # scope, please refer to the documentation of monotone and / or ask on the # mailing list (monotone-users@nongnu.org) or IRC channel # (irc.oftc.net/#monotone) # $cfg['mtn_db_access'] = 'remote'; # # If configured, this allows basic control of a running usher process # via the forge administration. The variable must point to the full (writable) # path of the usher configuration file which gets updated when new projects # are added # #$cfg['mtn_usher_conf'] = '/path/to/usher.conf'; # Mercurial repositories path #$cfg['mercurial_repositories'] = '/home/mercurial/repositories/%s'; #$cfg['mercurial_remote_url'] = 'http://projects.ceondo.com/hg/%s'; # admins will get an email in case of errors in the system in non # debug mode. $cfg['admins'] = array( array('Admin', 'you@example.com'), ); # Email configuration $cfg['send_emails'] = true; $cfg['mail_backend'] = 'smtp'; $cfg['mail_host'] = 'localhost'; $cfg['mail_port'] = 25; # Paths/Url configuration. # # Examples: # You have: # http://www.mydomain.com/myfolder/index.php # Put: # $cfg['idf_base'] = '/myfolder/index.php'; # $cfg['url_base'] = 'http://www.mydomain.com'; # # You have mod_rewrite: # http://www.mydomain.com/ # Put: # $cfg['idf_base'] = ''; # $cfg['url_base'] = 'http://www.mydomain.com'; # # # $cfg['idf_base'] = '/index.php'; $cfg['url_base'] = 'http://localhost'; # Url to access the media folder which is in the www folder # of the archive $cfg['url_media'] = 'http://localhost/media'; # Url to access a folder in which the files you upload through # the downloads tab will be stored. $cfg['url_upload'] = 'http://localhost/media/upload'; # Path to the upload folder $cfg['upload_path'] = '/home/www/indefero/www/media/upload'; # # The following path *MUST NOT* be accessible through a web browser # as user will be able to upload .html, .php files and this can # create *TERRIBLE* security issues. In this folder, the attachments # to the issues will be uploaded and we do not restrict the content type. # $cfg['upload_issue_path'] = '/home/www/indefero/attachments'; # # write here a long random string unique for this installation. This # is critical to put a long string, with at least 40 characters. $cfg['secret_key'] = ''; # the sender of all the emails. $cfg['from_email'] = 'sender@example.com'; # Email address for the bounced messages. $cfg['bounce_email'] = 'no-reply@example.com'; # Temporary folder where the script is writing the compiled templates, # cached data and other temporary resources. # It must be writeable by your webserver instance. # It is mandatory if you are using the template system. $cfg['tmp_folder'] = '/tmp'; # Database configuration $cfg['db_login'] = 'www'; $cfg['db_password'] = ''; $cfg['db_server'] = ''; $cfg['db_version'] = '5.1'; # Only needed for MySQL # If you want to have different installations with the same DB $cfg['db_table_prefix'] = 'indefero_'; # ** DO NOT USE SQLITE IN PRODUCTION ** # This is not because of problems with the quality of the SQLite # driver or with SQLite itself, this is due to the lack of migration # support in Pluf for SQLite, this means we cannot modify the DB # easily once it is loaded with data. $cfg['db_engine'] = 'PostgreSQL'; # SQLite is also well tested or MySQL $cfg['db_database'] = 'website'; # put absolute path to the db if you # are using SQLite. # # The extension of the downloads are limited. You can add extra # extensions here. The list must start with a space. # $cfg['idf_extra_upload_ext'] = ' ext1 ext2'; # # By default, the size of the downloads is limited to 2MB. # The php.ini upload_max_filesize configuration setting will # always have precedence. # $cfg['max_upload_size'] = 2097152; // Size in bytes # # Time zone # http://www.php.net/manual/en/timezones.php # # $cfg['time_zone'] = 'Europe/Berlin'; $cfg['pear_path'] = '/usr/share/php'; $cfg['login_success_url'] = $cfg['url_base'].$cfg['idf_base']; $cfg['after_logout_page'] = $cfg['url_base'].$cfg['idf_base']; # Caching of the scm commands. $cfg['cache_engine'] = 'Pluf_Cache_File'; $cfg['cache_timeout'] = 300; $cfg['cache_file_folder'] = $cfg['tmp_folder'].'/cache'; # The folder in which the templates of the application are located. $cfg['template_folders'] = array( dirname(__FILE__).'/../templates', ); $cfg['installed_apps'] = array('Pluf', 'IDF'); $cfg['pluf_use_rowpermission'] = true; $cfg['middleware_classes'] = array( 'Pluf_Middleware_Csrf', 'Pluf_Middleware_Session', 'IDF_Middleware', 'Pluf_Middleware_Translation', ); $cfg['template_context_processors'] = array('IDF_Middleware_ContextPreProcessor'); $cfg['idf_views'] = dirname(__FILE__).'/urls.php'; # available languages $cfg['languages'] = array('en', 'fr'); # SCM base configuration $cfg['allowed_scm'] = array('git' => 'IDF_Scm_Git', 'svn' => 'IDF_Scm_Svn', 'mercurial' => 'IDF_Scm_Mercurial', 'mtn' => 'IDF_Scm_Monotone', ); # If you want to use another memtypes database # $cfg['idf_mimetypes_db'] = '/etc/mime.types'; # Extra text files when displaying source # $cfg['idf_extra_text_ext'] = 'ext1 ext2 ext3'; # If you can execute the shell commands executed to get info # from the scm with the user of your PHP process but it is # not working from within PHP, this can be due to the environment # variables not being set correctly. Note the trailing space. # $cfg['idf_exec_cmd_prefix'] = '/usr/bin/env -i '; # Path to the SCM binaries. These binaries are not necessarily in # the path of your webserver or fastcgi process. In that case you # may need to set the path manually here. This is the case with OSX. # To know which path you need to provide, just run: # $ which git # from the command line. This will give you the path to git. # $cfg['svn_path'] = 'svn'; # $cfg['svnlook_path'] = 'svnlook'; # $cfg['svnadmin_path'] = 'svnadmin'; # $cfg['hg_path'] = 'hg'; # $cfg['git_path'] = 'git'; # If you do not want to have calculations of the repositories, attachments # and downloads size, set it to true. You can set to false some # times to times to check the size. # $cfg['idf_no_size_check'] = false; return $cfg;