forked from kaltura/mwEmbed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
LocalSettings.KalturaPlatform.php
52 lines (39 loc) · 1.92 KB
/
LocalSettings.KalturaPlatform.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
/**
* This file store all of mwEmbed local configuration ( in a default svn check out this file is empty )
*
* See includes/DefaultSettings.php for a configuration options
*/
// Get kaltura configuration file
require_once( realpath( '/opt/kaltura/app/alpha/config' ) . '/kConf.php' );
$kConf = new kConf();
// Kaltura HTML5lib Version
$wgKalturaVersion = basename(getcwd()); // Gets the version by the folder name
// The default Kaltura service url:
$wgKalturaServiceUrl = $wgHTTPProtocol . '://' . $kConf->get('cdn_api_host');
// Default Kaltura CDN url:
$wgKalturaCDNUrl = $wgHTTPProtocol. '://' . $kConf->get('cdn_host');
// Default Stats URL
$wgKalturaStatsServiceUrl = $wgHTTPProtocol. '://' . $kConf->get('stats_host');
// SSL host names
if( $wgHTTPProtocol == 'https' ){
$wgKalturaServiceUrl = $wgHTTPProtocol . '://' . $kConf->get('cdn_api_host_https');
$wgKalturaCDNUrl = $wgHTTPProtocol. '://' . $kConf->get('cdn_host_https');
$wgKalturaStatsServiceUrl = $wgHTTPProtocol. '://' . $kConf->get('stats_host_https');
}
// Default Asset CDN Path (used in ResouceLoader.php):
$wgCDNAssetPath = $wgKalturaCDNUrl;
// Default Kaltura Cache Path
$wgScriptCacheDirectory = $kConf->get('cache_root_path') . 'html5/' . $wgKalturaVersion;
$wgResourceLoaderUrl = $wgKalturaServiceUrl . '/html5/html5lib/' . $wgKalturaVersion . '/ResourceLoader.php';
// Salt for proxy the user IP address to Kaltura API
$wgKalturaRemoteAddressSalt = $kConf->get('remote_addr_header_salt');
// Allow Iframe to connect remote service
$wgKalturaAllowIframeRemoteService = true;
// Set debug for true (testing only)
$wgEnableScriptDebug = false;
// Define which modules to load
$wgMwEmbedEnabledModules = array( 'EmbedPlayer', 'KalturaSupport', 'AdSupport', 'Playlist', 'TimedText', 'Omniture',
'Plymedia', 'FreeWheel', 'EmbedWizard', 'SyntaxHighlighter', 'DoubleClick', 'Conviva',
'NielsenCombined', 'NielsenVideoCensus', 'Comscore', 'DolStatistics' );
?>