added configuration template files
This commit is contained in:
parent
25093aa35f
commit
d6c3e9ba73
2 changed files with 244 additions and 0 deletions
116
livesupport/modules/archiveServer/var/conf.php.template
Normal file
116
livesupport/modules/archiveServer/var/conf.php.template
Normal file
|
@ -0,0 +1,116 @@
|
||||||
|
<?php
|
||||||
|
/*------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Copyright (c) 2004 Media Development Loan Fund
|
||||||
|
|
||||||
|
This file is part of the LiveSupport project.
|
||||||
|
http://livesupport.campware.org/
|
||||||
|
To report bugs, send an e-mail to bugs@campware.org
|
||||||
|
|
||||||
|
LiveSupport is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
LiveSupport is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with LiveSupport; if not, write to the Free Software
|
||||||
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
|
|
||||||
|
Author : $Author: maroy $
|
||||||
|
Version : $Revision: 1.1 $
|
||||||
|
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/archiveServer/var/conf.php.template,v $
|
||||||
|
|
||||||
|
------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \file conf.php
|
||||||
|
* archiveServer configuration file
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* configuration structure:
|
||||||
|
*
|
||||||
|
* <dl>
|
||||||
|
* <dt>dsn<dd> datasource setting
|
||||||
|
* <dt>tblNamePrefix <dd>prefix for table names in the database
|
||||||
|
* <dt>authCookieName <dd>secret token cookie name
|
||||||
|
* <dt>storageDir <dd>main directory for storing binary media files
|
||||||
|
* <dt>bufferDir <dd>directory for temporary files
|
||||||
|
* <dt>transDir <dd>directory for incomplete transferred files
|
||||||
|
* <dt>accessDir <dd>directory for symlinks to accessed files
|
||||||
|
* <dt>isArchive <dd>local/central flag
|
||||||
|
* <dt>storageUrlPath<dd>path-URL-part of storageServer base dir
|
||||||
|
* (on central archive side: storage=archive)
|
||||||
|
* <dt>storageXMLRPC<dd>XMLRPC server script address relative to storageUrlPath
|
||||||
|
* <dt>storageUrlHost, storageUrlPort<dd>host and port of storageServer
|
||||||
|
* <dt>archiveUrlPath<dd>path-URL-part of archiveServer base dir
|
||||||
|
* <dt>archiveXMLRPC<dd>XMLRPC server script address relative to archiveUrlPath
|
||||||
|
* <dt>archiveUrlHost, archiveUrlPort<dd>host and port of archiveServer
|
||||||
|
* </dl>
|
||||||
|
*/
|
||||||
|
$config = array(
|
||||||
|
/* ================================================== basic configuration */
|
||||||
|
'dsn' => array(
|
||||||
|
'username' => 'ls_dbuser',
|
||||||
|
'password' => 'ls_dbpassword',
|
||||||
|
'hostspec' => 'ls_dbserver',
|
||||||
|
'phptype' => 'pgsql',
|
||||||
|
'database' => 'ls_database',
|
||||||
|
),
|
||||||
|
'tblNamePrefix' => 'as_',
|
||||||
|
'authCookieName'=> 'assid',
|
||||||
|
'StationPrefsGr'=> '',
|
||||||
|
'AllGr' => 'All',
|
||||||
|
'storageDir' => dirname(__FILE__).'/../../archiveServer/var/stor',
|
||||||
|
'bufferDir' => dirname(__FILE__).'/../../archiveServer/var/stor/buffer',
|
||||||
|
'transDir' => dirname(__FILE__).'/../../archiveServer/var/trans',
|
||||||
|
'accessDir' => dirname(__FILE__).'/../../archiveServer/var/access',
|
||||||
|
'isArchive' => TRUE,
|
||||||
|
'validate' => TRUE,
|
||||||
|
|
||||||
|
/* ==================================================== URL configuration */
|
||||||
|
// on central archive side: archive is the storage !
|
||||||
|
'storageUrlPath' => 'ls_storageUrlPath',
|
||||||
|
'storageXMLRPC' => 'xmlrpc/xrArchive.php',
|
||||||
|
'storageUrlHost' => 'ls_php_host',
|
||||||
|
'storageUrlPort' => ls_php_port,
|
||||||
|
// have to be another remote archive:
|
||||||
|
#'archiveUrlPath' => 'ls_archiveUrlPath',
|
||||||
|
#'archiveXMLRPC' => 'xmlrpc/xrArchive.php',
|
||||||
|
#'archiveUrlHost' => 'ls_php_host',
|
||||||
|
#'archiveUrlPort' => ls_php_port,
|
||||||
|
|
||||||
|
/* ==================================== aplication-specific configuration */
|
||||||
|
'objtypes' => array(
|
||||||
|
'RootNode' => array('Folder'),
|
||||||
|
'Storage' => array('Folder', 'File', 'Replica'),
|
||||||
|
'Folder' => array('Folder', 'File', 'Replica'),
|
||||||
|
'File' => array(),
|
||||||
|
'audioclip' => array(),
|
||||||
|
'playlist' => array(),
|
||||||
|
'Replica' => array(),
|
||||||
|
),
|
||||||
|
'allowedActions'=> array(
|
||||||
|
'RootNode' => array('classes', 'subjects'),
|
||||||
|
'Folder' => array('editPrivs', 'write', 'read'),
|
||||||
|
'File' => array('editPrivs', 'write', 'read'),
|
||||||
|
'audioclip' => array('editPrivs', 'write', 'read'),
|
||||||
|
'playlist' => array('editPrivs', 'write', 'read'),
|
||||||
|
'Replica' => array('editPrivs', 'write', 'read'),
|
||||||
|
'_class' => array('editPrivs', 'write', 'read'),
|
||||||
|
),
|
||||||
|
'allActions' => array(
|
||||||
|
'editPrivs', 'write', 'read', 'classes', 'subjects'
|
||||||
|
),
|
||||||
|
|
||||||
|
/* ============================================== auxiliary configuration */
|
||||||
|
'RootNode' => 'RootNode',
|
||||||
|
'tmpRootPass' => 'q',
|
||||||
|
);
|
||||||
|
?>
|
128
livesupport/modules/storageServer/var/conf.php.template
Normal file
128
livesupport/modules/storageServer/var/conf.php.template
Normal file
|
@ -0,0 +1,128 @@
|
||||||
|
<?php
|
||||||
|
/*------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Copyright (c) 2004 Media Development Loan Fund
|
||||||
|
|
||||||
|
This file is part of the LiveSupport project.
|
||||||
|
http://livesupport.campware.org/
|
||||||
|
To report bugs, send an e-mail to bugs@campware.org
|
||||||
|
|
||||||
|
LiveSupport is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
LiveSupport is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with LiveSupport; if not, write to the Free Software
|
||||||
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
|
|
||||||
|
Author : $Author: maroy $
|
||||||
|
Version : $Revision: 1.1 $
|
||||||
|
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageServer/var/conf.php.template,v $
|
||||||
|
|
||||||
|
------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \file conf.php
|
||||||
|
* storageServer configuration file
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* configuration structure:
|
||||||
|
*
|
||||||
|
* <dl>
|
||||||
|
* <dt>dsn<dd> datasource setting
|
||||||
|
* <dt>tblNamePrefix <dd>prefix for table names in the database
|
||||||
|
* <dt>authCookieName <dd>secret token cookie name
|
||||||
|
* <dt>StationPrefsGr <dd>name of station preferences group
|
||||||
|
* <dt>AllGr <dd>name of 'all users' group
|
||||||
|
* <dt>storageDir <dd>main directory for storing binary media files
|
||||||
|
* <dt>bufferDir <dd>directory for temporary files
|
||||||
|
* <dt>transDir <dd>directory for incomplete transferred files
|
||||||
|
* <dt>accessDir <dd>directory for symlinks to accessed files
|
||||||
|
* <dt>isArchive <dd>local/central flag
|
||||||
|
* <dt>validate <dd>enable/disable validator
|
||||||
|
* <dt>storageUrlPath<dd>path-URL-part of storageServer base dir
|
||||||
|
* <dt>storageXMLRPC<dd>XMLRPC server script address relative to storageUrlPath
|
||||||
|
* <dt>storageUrlHost, storageUrlPort<dd>host and port of storageServer
|
||||||
|
* <dt>archiveUrlPath<dd>path-URL-part of archiveServer base dir
|
||||||
|
* <dt>archiveXMLRPC<dd>XMLRPC server script address relative to archiveUrlPath
|
||||||
|
* <dt>archiveUrlHost, archiveUrlPort<dd>host and port of archiveServer
|
||||||
|
* <dt>archiveAccountLogin, archiveAccountPass <dd>account info
|
||||||
|
* for login to archive
|
||||||
|
* </dl>
|
||||||
|
*/
|
||||||
|
$config = array(
|
||||||
|
/* ================================================== basic configuration */
|
||||||
|
'dsn' => array(
|
||||||
|
'username' => 'ls_dbuser',
|
||||||
|
'password' => 'ls_dbpassword',
|
||||||
|
'hostspec' => 'ls_dbserver',
|
||||||
|
'phptype' => 'pgsql',
|
||||||
|
'database' => 'ls_database',
|
||||||
|
),
|
||||||
|
'tblNamePrefix' => 'ls_',
|
||||||
|
'authCookieName'=> 'lssid',
|
||||||
|
'StationPrefsGr'=> 'StationPrefs',
|
||||||
|
'AllGr' => 'All',
|
||||||
|
'storageDir' => dirname(__FILE__).'/../../storageServer/var/stor',
|
||||||
|
'bufferDir' => dirname(__FILE__).'/../../storageServer/var/stor/buffer',
|
||||||
|
'transDir' => dirname(__FILE__).'/../../storageServer/var/trans',
|
||||||
|
'accessDir' => dirname(__FILE__).'/../../storageServer/var/access',
|
||||||
|
'isArchive' => FALSE,
|
||||||
|
'validate' => TRUE,
|
||||||
|
|
||||||
|
/* ==================================================== URL configuration */
|
||||||
|
'storageUrlPath' => 'ls_storageUrlPath',
|
||||||
|
'storageXMLRPC' => 'xmlrpc/xrLocStor.php',
|
||||||
|
'storageUrlHost' => 'ls_php_host',
|
||||||
|
'storageUrlPort' => ls_php_port,
|
||||||
|
|
||||||
|
/* ================================================ archive configuration */
|
||||||
|
'archiveUrlPath' => 'ls_archiveUrlPath',
|
||||||
|
'archiveXMLRPC' => 'xmlrpc/xrArchive.php',
|
||||||
|
'archiveUrlHost' => 'ls_php_host',
|
||||||
|
'archiveUrlPort' => ls_php_port,
|
||||||
|
'archiveAccountLogin' => 'root',
|
||||||
|
'archiveAccountPass' => 'q',
|
||||||
|
|
||||||
|
/* ============================================== scheduler configuration */
|
||||||
|
'schedulerUrlPath' => 'ls_scheduler_urlPrefix',
|
||||||
|
'schedulerXMLRPC' => 'ls_scheduler_xmlRpcPrefix',
|
||||||
|
'schedulerUrlHost' => 'ls_scheduler_host',
|
||||||
|
'schedulerUrlPort' => ls_scheduler_port,
|
||||||
|
|
||||||
|
/* ==================================== aplication-specific configuration */
|
||||||
|
'objtypes' => array(
|
||||||
|
'RootNode' => array('Folder'),
|
||||||
|
'Storage' => array('Folder', 'File', 'Replica'),
|
||||||
|
'Folder' => array('Folder', 'File', 'Replica'),
|
||||||
|
'File' => array(),
|
||||||
|
'audioclip' => array(),
|
||||||
|
'playlist' => array(),
|
||||||
|
'Replica' => array(),
|
||||||
|
),
|
||||||
|
'allowedActions'=> array(
|
||||||
|
'RootNode' => array('classes', 'subjects'),
|
||||||
|
'Folder' => array('editPrivs', 'write', 'read'),
|
||||||
|
'File' => array('editPrivs', 'write', 'read'),
|
||||||
|
'audioclip' => array('editPrivs', 'write', 'read'),
|
||||||
|
'playlist' => array('editPrivs', 'write', 'read'),
|
||||||
|
'Replica' => array('editPrivs', 'write', 'read'),
|
||||||
|
'_class' => array('editPrivs', 'write', 'read'),
|
||||||
|
),
|
||||||
|
'allActions' => array(
|
||||||
|
'editPrivs', 'write', 'read', 'classes', 'subjects'
|
||||||
|
),
|
||||||
|
|
||||||
|
/* ============================================== auxiliary configuration */
|
||||||
|
'RootNode' => 'RootNode',
|
||||||
|
'tmpRootPass' => 'q',
|
||||||
|
);
|
||||||
|
?>
|
Loading…
Add table
Add a link
Reference in a new issue