[bd] Attachment Store for XenForo 2 FAQ

Discussion in 'Other' started by xfrocks, Feb 21, 2018.

Thread Status:
Not open for further replies.
  1. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    #1 , Feb 21, 2018
    Last edited: Feb 21, 2018
    Q: Where do I purchase and download the add-on?
    A: You have to purchase here, at xfrocks.com. The add-on is not available anywhere else.

    Q: Can I store attachments at Amazon S3 and use CloudFlare?
    A: Yes, you can use any CDN providers to distribute your files. We have a HOWTO for CloudFlare here.

    Q: Can I use Amazon S3 and CloudFront?
    A: Yes. The add-on supports signed URL for CloudFront, making it possible to both secure your files and deliver them fast. The HOWTO is available here.

    Q: Can I use Digital Ocean Space?
    A: Yes. The add-on supports all S3-compatible storage services. For DO, put something like this in your config.php:

    PHP:
    $config['bdAttachmentStore_s3Buckets'] = [
        
    'my-do-space' => [
            
    'key' => 'ABC123',
            
    'secret' => 'xyz456',
            
    'endpoint' => 'https://my-do-space.nyc3.digitaloceanspaces.com',
            
    'url' => 'https://nyc3.digitaloceanspaces.com/my-do-space',
        ],
    ];
    You will need to replace your DO Space name, key and secret for it to work. After updating config.php, enter "my-do-space" as the bucket name for S3 in XenForo AdminCP options page.

    Q: Can I use Minio?
    A: Yes. The add-on supports S3-compatible storage services (see above), you should be able to configure it to work with your Minio cluster. Something like these should work:

    PHP:
    $config['bdAttachmentStore_s3Buckets'] = [
        
    'minio-bucket-name' => [
            
    'key' => 'ABC123',
            
    'secret' => 'xyz456',
            
    'endpoint' => 'http://minio.domain.com:9000',
            
    'url' => 'http://minio.domain.com:29000/minio-bucket-name',
        ],
    ];
     
    MattW and alfa1 like this.
Loading...