Last active
April 5, 2021 10:57
-
-
Save goregrish/4951d1db64b72fb190d339b10e9e7134 to your computer and use it in GitHub Desktop.
Xenforo define different attachment locations and add basic redis support (using xon's redis add-on)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# $config['enableListeners'] = false; | |
$config['db']['host'] = 'localhost'; | |
$config['db']['port'] = '3306'; | |
$config['db']['username'] = ''; | |
$config['db']['password'] = ''; | |
$config['db']['dbname'] = ''; | |
$config['db']['socket'] = null; | |
$config['fullUnicode'] = true; #unicode emotes | |
$config['enableTfa'] = false; #disable 2fa | |
# $config['superAdmins'] = '1'; #no longer used? | |
$config['enableAddOnArchiveInstaller'] = true; #enable add-ons | |
// Keep code_cache and temp directories in local /tmp drive 1 SSD | |
$config['codeCachePath'] = '/srv/www/forums/internal_data/code_cache'; | |
$config['tempDataPath'] = '/srv/www/forums/internal_data/temp'; | |
// PATH FOR internal_data DIRECTORY (image attachements on SSD drive 2) | |
$config['internalDataPath'] = '/drive2/forums/internal_data; | |
$config['internalDataUrl'] = '/internal_data'; | |
// PATH FOR data PUBLIC DIRECTORY (video attachements and avatars etc on SSD drive 3) | |
// using a subdomain to bypass cloudflare proxy | |
$config['externalDataPath'] = '/drive3/forums/data'; | |
$config['externalDataUrl'] = 'https://video.mydomain.com/data'; | |
//basic redis config using xon's redis add-on | |
$config['cache']['enabled'] = true; | |
$config['cache']['provider'] = 'SV\RedisCache\Redis'; | |
$config['cache']['config'] = array( | |
'server' => '127.0.0.1', | |
'port' => 6379, | |
'compress_data' => 6, | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment