175 lines
5.6 KiB
PHP
175 lines
5.6 KiB
PHP
<?php
|
|
// ***** BEGIN LICENSE BLOCK *****
|
|
//
|
|
// Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
|
//
|
|
// The contents of this file are subject to the Mozilla Public License Version
|
|
// 1.1 (the "License"); you may not use this file except in compliance with
|
|
// the License. You may obtain a copy of the License at
|
|
// http://www.mozilla.org/MPL/
|
|
//
|
|
// Software distributed under the License is distributed on an "AS IS" basis,
|
|
// WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
// for the specific language governing rights and limitations under the
|
|
// License.
|
|
//
|
|
// The Original Code is AUS.
|
|
//
|
|
// The Initial Developer of the Original Code is Mike Morgan.
|
|
//
|
|
// Portions created by the Initial Developer are Copyright (C) 2006
|
|
// the Initial Developer. All Rights Reserved.
|
|
//
|
|
// Contributor(s):
|
|
// Mike Morgan <morgamic@mozilla.com>
|
|
//
|
|
// Alternatively, the contents of this file may be used under the terms of
|
|
// either the GNU General Public License Version 2 or later (the "GPL"), or
|
|
// the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
// in which case the provisions of the GPL or the LGPL are applicable instead
|
|
// of those above. If you wish to allow use of your version of this file only
|
|
// under the terms of either the GPL or the LGPL, and not to allow others to
|
|
// use your version of this file under the terms of the MPL, indicate your
|
|
// decision by deleting the provisions above and replace them with the notice
|
|
// and other provisions required by the GPL or the LGPL. If you do not delete
|
|
// the provisions above, a recipient may use your version of this file under
|
|
// the terms of any one of the MPL, the GPL or the LGPL.
|
|
//
|
|
// ***** END LICENSE BLOCK *****
|
|
|
|
/**
|
|
* Configuration file.
|
|
* @package aus
|
|
* @subpackage inc
|
|
* @author Mike Morgan
|
|
*/
|
|
// define('SOURCE_DIR','/home/morgamic/public_html/auslite/source');
|
|
define('SOURCE_DIR',getcwd().'/data');
|
|
|
|
// This is the directory containin channel-specific updates.
|
|
// Snippets in this directory override normal updates.
|
|
define('OVERRIDE_DIR',getcwd().'/data/3');
|
|
|
|
// Uncomment this line in order to echo text debug information.
|
|
define('DEBUG',false);
|
|
|
|
// Define default for Update blocks.
|
|
define('UPDATE_TYPE','minor');
|
|
define('UPDATE_VERSION','1.0+');
|
|
define('UPDATE_EXTENSION_VERSION','1.0+');
|
|
|
|
// Define cookie parameters
|
|
define('COOKIE_NAME', 'aus2');
|
|
define('COOKIE_DOMAIN', 'aus2.mozilla.org');
|
|
|
|
// Turns global throttling on and off.
|
|
define('THROTTLE_GLOBAL',false);
|
|
|
|
// Define the throttle -- think gas pedal. This determines how much the AUS application will
|
|
// stagger updates. Pedal to the floor means we're serving all updates. Examples:
|
|
// 10 = Updates offered only 10% of the time.
|
|
// 80 = Updates offered 80% of the time.
|
|
// 100 = Updates always offered.
|
|
define('THROTTLE_LEVEL',100);
|
|
|
|
// Turns logging throttled hits on and off.
|
|
define('THROTTLE_LOGGING',false);
|
|
|
|
// This defines explicit throttling levels. If global throttling is on, these
|
|
// override global levels. If it is off, this still works. For example, this
|
|
// is 10% throttling (only 10% of the time updates are offered):
|
|
//
|
|
// $productThrottling = array(
|
|
// 'Firefox' => array(
|
|
// '3.0' => array(
|
|
// 'release' => 10
|
|
// )
|
|
// )
|
|
// );
|
|
$productThrottling = array(
|
|
'Synthetic' => array(
|
|
'1.0' => array(
|
|
'channel' => 100
|
|
)
|
|
)
|
|
);
|
|
|
|
// These are channels that have access to nightly updates.
|
|
// All other channels only have access to the OVERRIDE_DIR for update info.
|
|
$nightlyChannels = array(
|
|
'nightly'
|
|
);
|
|
|
|
// This hash defines the product->version->patch relationships for nightlies
|
|
// It determines which patches are associated to which incoming client versions.
|
|
// @todo replace this with a better datasource that can be easily managed via a GUI.
|
|
$productBranchVersions = array(
|
|
'Synthetic' => array('1.5.0.*' => '1.5.0.x')
|
|
);
|
|
|
|
// Config for memcache.
|
|
define('MEMCACHE_NAMESPACE', 'aus'); // set memcache namespace. Keep this string as short and simple as possible.
|
|
define('MEMCACHE_EXPIRE', 1800); // how long items are stored in memcache
|
|
define('MEMCACHE_ON', false); // whether or not to cache ever
|
|
|
|
/**
|
|
* Memcache configuration.
|
|
* See http://php.oregonstate.edu/memcache for info.
|
|
*/
|
|
$memcache_config = array(
|
|
'localhost' => array(
|
|
'port' => '11211',
|
|
'persistent' => true,
|
|
'weight' => '1',
|
|
'timeout' => '1',
|
|
'retry_interval' => 15
|
|
)
|
|
);
|
|
|
|
/*
|
|
* Array that defines which %OS_VERSION% values are no longer supported.
|
|
* For incoming URIs containing these as their platformVersion, no updates
|
|
* will be offered. As of bug 418129, this has to be branch-specific and aware
|
|
* of whether or not an update is major. Use of this array is in
|
|
* inc/patch.class.php.
|
|
*
|
|
* Array format has changed, and is considered to be:
|
|
|
|
* array(
|
|
* $Product => array(
|
|
* $Version => array(
|
|
* $OS_VERSION
|
|
* )
|
|
* )
|
|
* )
|
|
*
|
|
* $Product is the product name (Firefox, Thunderbird, etc. - %PRODUCT%).
|
|
*
|
|
* $Version is the client version in the URL (%VERSION%).
|
|
*
|
|
* $OS_VERSION is used in a string match (existence anywhere in passed
|
|
* %OS_VERSION% triggers blocklisting of that OS).
|
|
*/
|
|
$unsupportedPlatforms = array(
|
|
'Synthetic' => array(
|
|
'1.0*' => array(
|
|
'Darwin 6',
|
|
'Darwin 7',
|
|
'Windows_95',
|
|
'Windows_98',
|
|
'Windows_NT 4',
|
|
'GTK 2.0.',
|
|
'GTK 2.1.',
|
|
'GTK 2.2.',
|
|
'GTK 2.3.',
|
|
'GTK 2.4.',
|
|
'GTK 2.5.',
|
|
'GTK 2.6.',
|
|
'GTK 2.7.',
|
|
'GTK 2.8.',
|
|
'GTK 2.9.'
|
|
)
|
|
)
|
|
);
|
|
?>
|