1<?php 2/*========================================================================= 3 4 Program: CDash - Cross-Platform Dashboard System 5 Module: $Id$ 6 Language: PHP 7 Date: $Date$ 8 Version: $Revision$ 9 10 Copyright (c) 2002 Kitware, Inc. All rights reserved. 11 See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details. 12 13 This software is distributed WITHOUT ANY WARRANTY; without even 14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 15 PURPOSE. See the above copyright notices for more information. 16 17=========================================================================*/ 18/** WARNING: It's recommended to create a config.local.php file and leave 19 * this file as is. 20 * If creating the config.local.php from config.php make sure you DELETE 21 * any text after the 'DO NOT EDIT AFTER THIS LINE' otherwise your 22 * configuration file will be referencing each other. */ 23 24// This file is 'config.php', in the directory 'cdash', in the root. 25// Therefore, the root of the CDash source tree on the web server is: 26$CDASH_ROOT_DIR = str_replace("\\", "/", dirname(dirname(__FILE__))); 27 28// Hostname of the database server 29$CDASH_DB_HOST = 'localhost'; 30// Login for database access 31$CDASH_DB_LOGIN = 'root'; 32// Port for the database (leave empty to use default) 33$CDASH_DB_PORT = ''; 34// Password for database access 35$CDASH_DB_PASS = ''; 36// Name of the database 37$CDASH_DB_NAME = 'cdash'; 38// Database type (empty means mysql) 39$CDASH_DB_TYPE = 'mysql'; 40// Turn this variable ON when CDash has been installed 41// Prevents from running the install.php again 42$CDASH_PRODUCTION_MODE = false; 43$CDASH_TESTING_MODE = false; 44$CDASH_TESTING_RENAME_LOGS = false; 45// Should we use asynchronous submission 46$CDASH_ASYNCHRONOUS_SUBMISSION = false; 47// Main title and subtitle for the index page 48$CDASH_MAININDEX_TITLE = 'CDash'; 49$CDASH_MAININDEX_SUBTITLE = 'Projects'; 50// Default from email 51$CDASH_EMAILADMIN = 'admin@cdash.org'; 52$CDASH_EMAIL_FROM = 'admin@cdash.org'; 53$CDASH_EMAIL_REPLY = 'noreply@cdash.org'; 54// Should CDash only register valid emails 55$CDASH_REGISTRATION_EMAIL_VERIFY = true; 56// Duration of the cookie session (in seconds) 57$CDASH_COOKIE_EXPIRATION_TIME='3600'; 58// Using HTTPS protocol to access CDash 59$CDASH_USE_HTTPS ='0'; 60// Name of the server running CDash. 61// Leave empty to use current name and default port. 62$CDASH_SERVER_NAME = ''; 63$CDASH_SERVER_PORT = ''; 64// If the remote request should use localhost or the full name 65// This variable should be set to 1 in most of the server configurations 66$CDASH_CURL_REQUEST_LOCALHOST='1'; 67$CDASH_CURL_LOCALHOST_PREFIX=''; 68$CDASH_BASE_URL=''; 69// Define the location of the local directory 70$CDASH_USE_LOCAL_DIRECTORY = '0'; 71// CSS file 72$CDASH_CSS_FILE = 'cdash.css'; 73// Backup directory 74$CDASH_BACKUP_DIRECTORY = $CDASH_ROOT_DIR.'/backup'; 75// Upload directory (absolute or relative) 76$CDASH_UPLOAD_DIRECTORY = $CDASH_ROOT_DIR.'/upload'; 77// The relative path from the CDash root dir to the $CDASH_UPLOAD_DIRECTORY (for downloading) 78// http://<CDASH_URL>/<CDASH_DIR>/$CDASH_DOWNLOAD_RELATIVE_URL/<SHA-1>/<FILENAME> 79// Note that this must be a relative path to the same directory specified by $CDASH_UPLOAD_DIRECTORY 80$CDASH_DOWNLOAD_RELATIVE_URL = 'upload'; 81// Log file location 82$CDASH_LOG_FILE = $CDASH_BACKUP_DIRECTORY."/cdash.log"; 83// Should normal user allowed to create projects 84$CDASH_USER_CREATE_PROJECTS = false; 85// Maximum size allocated for the logs 86// CDash creates 10 files spanning the total size allocated 87$CDASH_LOG_FILE_MAXSIZE_MB = 50; 88// Log level 89$CDASH_LOG_LEVEL = LOG_WARNING; 90// Using external authentication 91$CDASH_EXTERNAL_AUTH = '0'; 92// Backup timeframe 93$CDASH_BACKUP_TIMEFRAME = '48'; // 48 hours 94// Request full email address to add new users 95// instead of displaying a list 96$CDASH_FULL_EMAIL_WHEN_ADDING_USER = '0'; 97// Warn about unregistered committers: default to '1' to keep 98// the behavior the same as previous versions. Set to '0' to 99// avoid "is not registered (or has no email)" warning messages. 100$CDASH_WARN_ABOUT_UNREGISTERED_COMMITTERS = '0'; 101// Use getIPfromApache script to get IP addresses 102// when using forwarding script 103$CDASH_FORWARDING_IP='192.%'; // should be an SQL format 104$CDASH_DEFAULT_IP_LOCATIONS = array(); 105// Use compression (default on) 106$CDASH_USE_COMPRESSION='1'; 107// Use LDAP 108$CDASH_USE_LDAP='0'; 109$CDASH_LDAP_HOSTNAME='localhost'; 110$CDASH_LDAP_BASEDN='ou=people,dc=organization,dc=com'; 111$CDASH_LDAP_PROTOCOL_VERSION='3'; 112// Additional LDAP query filters to restrict authorized user list 113// Example: To restrict users to a specific Active Directory group: 114// '(memberOf=cn=superCoolRescrictedGroup,cn=Users,dc=example,dc=com)' 115$CDASH_LDAP_FILTER=''; 116// For authentication against Active Directory, set CDASH_LDAP_AUTHENTICATED to '1' 117// CDASH_LDAP_OPT_REFERRALS to '0', and specify a bind DN and password 118$CDASH_LDAP_OPT_REFERRALS='1'; 119$CDASH_LDAP_AUTHENTICATED='0'; 120$CDASH_LDAP_BIND_DN='cn=user,ou=people,dc=orgranization,dc=com'; 121$CDASH_LDAP_BIND_PASSWORD='password'; 122// Allow rememberme 123$CDASH_ALLOW_LOGIN_COOKIE='1'; 124// Set to start the autoremoval on the first build of the day 125$CDASH_AUTOREMOVE_BUILDS='0'; 126// Google Map API 127$CDASH_GOOGLE_MAP_API_KEY = array(); 128$CDASH_GOOGLE_MAP_API_KEY['localhost'] = 'ABQIAAAAT7I3XxP5nXC2xZUbg5AhLhQlpUmSySBnNeRIYFXQdqJETZJpYBStoWsCJtLvtHDiIJzsxJ953H3rgg'; 129// Enable Google Analytics 130$CDASH_DEFAULT_GOOGLE_ANALYTICS=''; 131// How long since the last submission before considering a project 132// non active 133$CDASH_ACTIVE_PROJECT_DAYS = '7'; // a week 134// Use CDash to manage build submissions 135// This feature is currently experimental 136$CDASH_MANAGE_CLIENTS = '0'; 137// Define the git command 138$CDASH_GIT_COMMAND = 'git'; 139// The default git directory where the bare repositories should be created 140$CDASH_DEFAULT_GIT_DIRECTORY = 'git'; 141// Define the p4 command 142$CDASH_P4_COMMAND = 'p4'; 143// Number of seconds to allow processing a single submission before resetting 144$CDASH_SUBMISSION_PROCESSING_TIME_LIMIT = '450'; 145// Number of times to attempt processing a single submission before giving up 146$CDASH_SUBMISSION_PROCESSING_MAX_ATTEMPTS = '5'; 147// Maximum per-project upload quota, in GB 148$CDASH_MAX_UPLOAD_QUOTA = '10'; 149// Maximum size of large text fields, in php-strlen units, 0 for unlimited 150$CDASH_LARGE_TEXT_LIMIT = '0'; 151 152/** DO NOT EDIT AFTER THIS LINE */ 153$localConfig = dirname(__FILE__).'/config.local.php'; 154if ((strpos(__FILE__,'config.local.php') === FALSE) && file_exists($localConfig) ) 155 { 156 include($localConfig); 157 } 158?> 159