I had this working fine on a previous version using digital ocean method. I am doing a fresh install using the latest version of Xenforo. As soon as i added code to config I am unable to log into administrative panel. Any help would be appreciated. Here's my config file...
<?php
$config['db']['host'] = 'localhost';
$config['db']['port'] = '3306';
$config['db']['username'] = 'xxxxxxxxxxxxxx';
$config['db']['password'] = 'xxxxxxxxxxxxxx';
$config['db']['dbname'] = 'xxxxxxxxxxxxxx';
$config['fullUnicode'] = true;
$s3 = function()
{
return new \Aws\S3\S3Client([
'credentials' => [
'key' => 'xxxxxxxxxxxxxx',
'secret' => 'xxxxxxxxxxxxxx'
],
'region' => 'nyc3',
'version' => 'latest',
'endpoint' => '
https://nyc3.digitaloceanspaces.com/'
]);
};
$config['fsAdapters']['data'] = function() use($s3)
{
return new \League\Flysystem\AwsS3v3\AwsS3Adapter($s3(), 'xftest', 'data');
};
$config['externalDataUrl'] = function($externalPath, $canonical)
{
return '
https://xftest.nyc3.digitaloceanspaces.com/data/' . $externalPath;
};
$config['fsAdapters']['internal-data'] = function() use($s3)
{
return new \League\Flysystem\AwsS3v3\AwsS3Adapter($s3(), 'xftest', 'internal_data');
};