Skip to content

Configuration.php variable ( some are hidden )

Daniel Neto edited this page Jun 22, 2022 · 24 revisions

As the project grows , new variables are written but with the time are forgotten ( hidden )

On this page , we will update and save this all known variable that any user could add to his configuration.php on /videos in case does not have them.

NOTE :

0 = Disable , False

1= Enable , True

$global['configurationVersion'] = {version}; // Installation version

$global['disableAdvancedConfigurations'] = {0,1}; // Enable , disable ; Default 0

$global['videoStorageLimitMinutes'] = {0,100000}; // 0 = no limit ; Default 0

$global['disableTimeFix'] = {0,1}; // Enable , disable ; Default 0

$global['rowCount'] = {1-100000}; // https://github.com/WWBN/AVideo/issues/3462 ; Default 10000

$global['limitForUnlimitedVideos'] = {1-100000}; // https://github.com/WWBN/AVideo/issues/3462 ; Default 10000

$global['mysqli_charset'] = 'Collation type'; I'm not gonna type down all the collation types ; example 'utf8'

$global['systemRootPath'] = '/path/to/root/folder/'; // This is the default directory . Change it if needed. Must be a directory that Apache can serve publicly, with the right permissions. ; Default /var/www/html/AVideo/

$global['salt'] = '65465465456'; // Here goes the salt ( auto-generated during the installation )

$global['enableDDOSprotection'] = {0,1}; // Enable , disable ; Default 1

$global['ddosMaxConnections'] = 1-100; Max connection before timeout ; Default 40

$global['ddosSecondTimeout'] = 1-3600; Number of second timeout duration ; Default 5

$global['strictDDOSprotection'] = 0; // Enable , disable ; Default 0

$global['noDebug'] = 0; // Enable , disable ; Default 0

$global['webSiteRootPath'] = ''; Leave it as it is if you have not changed the root path .

$global['logfile'] = '/path/to/log/location/'; If you wanna change the log location . Default /var/www/html/AVideo/videos/avideo.log

$global['disableVideoTags'] = 1; Pulls the videos maximum resolution to display on the home page, disabling it may speed up your site if you are using a remote storage

$global['getUsageFromFilename'] = 1; With this it will not process the video Usage

$global['stopBotsList'] = array('bot','spider','rouwler','Nuclei','MegaIndex','NetSystemsResearch','CensysInspect'); Allows to block bots based on "keywords". Careful with this function, for example bot array will block all bots/spider whom USER AGENT contain the word "bot". To avoid blocking legitimate bots with the word "bot", make sure to whitelist the their name with $global['stopBotsWhiteList'] // https://github.com/WWBN/AVideo/pull/4860

$global['stopBotsWhiteList'] = array('google','bing','yahoo','yandex'); Whitelist legitimate bots // https://github.com/WWBN/AVideo/pull/4860

$global['ignoreCDN'] = {0-1}; This option disables or enables CND

$global['tmpDir'] = /path/to/location; https://github.com/WWBN/AVideo/issues/5162

$global['ignoreAllCache'] = {0-1}; it will ignore all cache

$global['ob_start_callback'] = {false or a String} An optional callback function for ob_start, set it = false will disable the default ob_gzhandler callback; https://www.php.net/manual/en/function.ob-start.php

Clone this wiki locally