Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
title1. Enable Digital Ocean S3 object storage

NOTES:

Although FileCloud does not have an explicit connector for Digital Ocean, the Amazon S3 connector can be used.

In this step you will need to access WWWROOT. It is typically located at: 

Windows

Linux

(later than Ubuntu 14.04)

Linux

(earlier than Ubuntu 14.04)

c:\xampp\htdocs/var/www/html/var/www


To enable Digital Ocean s3 storage as the backend:

  1.  To make sure that your server does not have any time variations, set up the time on your server to be synchronized.
    1. Configure an authoritative time server in Windows Server
    2. Synchronize Time with NTP in Linux
  2. Open the following file for editing:

    Code Block
    themeMidnight
    WWWROOT/config/cloudconfig.php


  3. Find the following line:

    Code Block
    themeMidnight
    define("TONIDOCLOUD_STORAGE_IMPLEMENTATION", "local");


  4. Change it to this line:

    Code Block
    themeMidnight
    define("TONIDOCLOUD_STORAGE_IMPLEMENTATION", "amazons3");


  5. Save and close the file.
  6. Find the following file: 

    Code Block
    themeMidnight
    WWWROOT/config/amazons3storageconfig-sample.php


  7. Rename it to:

    Code Block
    themeMidnight
    WWWROOT/config/amazons3storageconfig.php



(lightbulb) Nothing needs to be added or edited in amazons3storageconfig.php



...

Expand
title2. Configure Credentials

After you have setup the storage implementation key in step 1, you can configure the following credentials:

FieldDescription
S3 KeyThis is your Digital Ocean authentication key.
S3 SecretThis is your Digital Ocean authentication secret.
S3 Bucket Name

Provide a bucket name. The bucket should be new (in some circumstance, previously used bucket in FileCloud could be used).

It is very important that the S3 bucket is never modified outside of the FileCloud subsystem,

the bucket name is case sensitive make sure you are using the exact name of the bucket.

S3 Storage FolderOptional: All files will be stored inside this root storage folder (Will be created automatically).
S3 RegionOptional: Provide the region string.
S3 End Point URLThis is the S3 endpoint. note that for each region there is a specific Endpoint URL.


Image Modified

To configure Digital Ocean S3 Credentials

  1. Open a browser and log into Admin Portal.
  2. In the left navigation panel, under SETTINGS, select Settings
  3. On the Manage Settings screen, select the Storage tab.
  4. Type in or select the settings for your environment.
  5. Click Save.




Troubleshooting:


Expand
titleHow to Correct Issues with Image Previews

If you are having problems in previewing images, you should add a line to the .htaccess file.

To add a line to the .htaccess file:

  1. Open the following file:
    1. Windows:  C:\xampp\htdocs\.htaccess
    2. Linux: /var/www/html/.htaccess
  2. Add the following line:

    Code Block
    themeMidnight
    Header set Content-Security-Policy: "default-src 'self' *.live.com; style-src 'unsafe-inline' 'self';script-src 'unsafe-inline' 'unsafe-eval' 'self';font-src 'self' data:;img-src 'self' *.live.com  data: *.duosecurity.com *.digitaloceanspaces.com"



Expand
titleHow to Correct Issues with playing mp4 videos

If you are having problems in playing  mp4 videos, you should add a line to the .htaccess file.

To add a line to the .htaccess file:

  1. Open the following file:
    1. Windows:  C:\xampp\htdocs\.htaccess
    2. Linux: /var/www/html/.htaccess
  2. Add the following line:


    Code Block
    themeMidnight
    Header set Content-Security-Policy: "default-src 'self' *.live.com *.digitaloceanspaces.com; style-src 'unsafe-inline' 'self';script-src 'unsafe-inline' 'unsafe-eval' 'self';font-src 'self' data:;img-src 'self' *.live.com  data: *.duosecurity.com *.digitaloceanspaces.com"