# HG changeset patch # User Matti Hamalainen # Date 1416814425 -7200 # Node ID 546058da8f07f2bed7f1059dbaa425dd6668dcd3 # Parent 390241b1d54973eec1b275d847e6ed71e2db0fef Update example configuration. diff -r 390241b1d549 -r 546058da8f07 mconfig.inc.php.example --- a/mconfig.inc.php.example Mon Nov 24 09:32:03 2014 +0200 +++ b/mconfig.inc.php.example Mon Nov 24 09:33:45 2014 +0200 @@ -38,16 +38,41 @@ "userTimeout" => 120, // In minutes "admTimeout" => 15, + // Entry file paths and URL prefixes "entryPath" => "/home/ccr/files/", // should be absolute path - "previewPath" => "/home/ccr/fapdev/files/", // should be absolute path - "previewURL" => "http://localhost:8888/files/", // can be relative (should point to same dir as previewPath) + "entryPathPerms" => 0755, + "entryFilePerms" => 0644, + + "previewPath" => "/home/ccr/fapdev/previews/", // should be absolute path + "previewURL" => "http://localhost:8888/previews/", // can be relative (should point to same dir as previewPath) "thumbnailSubDir" => "tn/", // relative subdir to previewPath and previewURL - - "previewImageSize" => array(640, 480), + "previewPathPerms" => 0711, + "previewFilePerms" => 0644, + + // Generated sample files settings + // Used for openmpt123 and avconv + "sampleFreq" => 44100, // in Hz + "sampleChannels" => 1, // 1 = mono, 2 = stereo + "sampleDuration" => 30, // in seconds + + // Samples to be generated, and their quality settings + "sampleTypes" => array( + "MP3" => array("-b:a", 96), // cbr kbps + "OggVorbis" => array("-q:a", 5), // encoding quality setting + ), + + // Preview image files settings + "previewImageType" => "PNG", // Generally PNG or JPEG + "previewImageQuality" => 9, // compression (PNG) or quality (JPEG) + "previewImageSize" => array(640, 480), // resolution W x H + + "previewThumbType" => "PNG", + "previewThumbQuality" => 9, // compression (PNG) or quality (JPEG) "previewThumbSize" => array(64, 48), ); + date_default_timezone_set("Europe/Helsinki"); $securePages = array(